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
1 changed files with 1 additions and 1 deletions

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