1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-29 19:08:12 +00:00

tools.codegen: print nice stats at the end

This commit is contained in:
Pavol Rusnak 2018-01-07 22:46:54 +01:00
parent dcb32d91f7
commit 10344dd864
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -35,12 +35,14 @@ def main():
certs = process_certdata(r.text)
size = 0
print('cert_bundle = [')
for k, v in certs.items():
print(' # %s' % k)
print(' %s,' % blake2s(v).digest())
size += len(v)
print(']')
print('# certs: %d | digests size: %d | total size: %d' % (len(certs), len(certs) * 32, size))
if __name__ == '__main__':