mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 07:28:10 +00:00
apps.fido_u2f: make register sign with correct privkey
This commit is contained in:
parent
ce915749de
commit
136514da5c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user