AntonKueltz / fastecdsa

Python library for fast elliptic curve crypto
https://pypi.python.org/pypi/fastecdsa
The Unlicense
264 stars 77 forks source link

Signature verification fails when hash digest size is larger than curve order #1

Closed AntonKueltz closed 8 years ago

AntonKueltz commented 8 years ago

When e.g. we try to sign something using P192 and SHA256 we will get False returned for valid signatures. Need to truncate hash digest down to the same number of bits as the curve order, as is required by ECDSA.

AntonKueltz commented 8 years ago

Fixed in commit bdffbd233e6b6049c4252217e2ced0b17ae2dc28.