Few fixes in signature generation and verification

This commit is contained in:
Ondrej Mikle 2017-10-22 22:53:30 +02:00
parent d0121aaed9
commit db0e5721ff
4 changed files with 15 additions and 10 deletions

View file

@ -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