1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

tools: fix bug in keyctl introduced by last commit

This commit is contained in:
Pavol Rusnak 2018-01-28 18:24:56 +01:00
parent 706ddda1a7
commit 11245a82ea
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -126,6 +126,7 @@ def sign(index, filename, global_commit, seckey):
@click.argument('global_commit')
@click.argument('signatures', nargs=-1)
def global_sign(index, filename, global_commit, signatures):
index = indexmap[index]
data = open(filename, 'rb').read()
data = header_to_sign(index, data)
digest = pyblake2.blake2s(data).digest()