1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

apps.fido_u2f: make register sign with correct privkey

This commit is contained in:
Jan Pochyla 2017-05-29 17:50:36 +02:00
parent ce915749de
commit 136514da5c

View File

@ -401,7 +401,7 @@ def msg_register_sign(challenge: bytes, app_id: bytes, cert: bytes) -> bytes:
dig = dig.digest()
# sign the digest and convert to der
sig = nist256p1.sign(node.private_key(), dig, False)
sig = nist256p1.sign(_U2F_ATT_PRIV_KEY, dig, False)
sig = der.encode_seq((sig[1:33], sig[33:]))
# pack to a response