pyca / cryptography

cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
https://cryptography.io
Other
6.4k stars 1.47k forks source link

utils.int_to_bytes: guard against zero-length #11173

Closed DavidBuchanan314 closed 3 days ago

DavidBuchanan314 commented 6 days ago

Fixes #11172 by raising ValueError if length==0.

alex commented 4 days ago

One tiny nit, otherwise this looks great. Thanks for contributing!