mirror of
https://github.com/brmlab/brmdoor_libnfc.git
synced 2025-06-08 00:24:00 +02:00
Few fixes in signature generation and verification
This commit is contained in:
parent
d0121aaed9
commit
db0e5721ff
4 changed files with 15 additions and 10 deletions
|
@ -161,6 +161,7 @@ class DesfireEd25519Authenthicator(object):
|
|||
"""
|
||||
Returns true iff uid (as binary) is the message signed by signature (binary string)
|
||||
"""
|
||||
print "Signature len:", len(signature)
|
||||
verified = curve.verifySignature(self.pubKey, uid, signature) == 0
|
||||
return verified
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue