Skip to content

Commit

Permalink
Merge pull request #56 from zejn/fix-cryptography-ec
Browse files Browse the repository at this point in the history
Fix for just released cryptography 1.9.
  • Loading branch information
mpdavis authored May 31, 2017
2 parents 7403dff + bd19fda commit d1a1eac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jose/backends/cryptography_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def verify(self, msg, sig):
verifier = self.prepared_key.verifier(signature, ec.ECDSA(self.hash_alg()))
verifier.update(msg)
try:
return verifier.verify()
verifier.verify()
return True
except:
return False

Expand Down

0 comments on commit d1a1eac

Please sign in to comment.