AntonKueltz / fastecdsa

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

Avoid leaking nonce in _ecdsa_sign() #67

Closed botovq closed 3 years ago

botovq commented 3 years ago

The nonce was allocated by mpz_set_str(), so must be freed by mpz_clear(). This makes the test by @EggPool in #6 run in constant memory.

AntonKueltz commented 3 years ago

Thanks for the fix!