cryptography/tests/hazmat
David Buchanan 56933bf61a
utils.int_to_bytes: guard against zero-length (#11173)
* utils: guard against zero-length int_to_bytes

* add tests for HBKDF with llen=0

* kbkdf: guard against llen==0

* test that kbkdf rejects llen==0 at __init__

* add standalone test for zero-length int_to_bytes

* Update src/cryptography/hazmat/primitives/kdf/kbkdf.py

typo

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>

---------

Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
2024-06-29 15:23:57 +00:00
..
backends Convert PKCS#12 loading to Rust (#10434) 2024-02-19 16:44:28 -08:00
bindings Move a few more constants fully to Rust (#10428) 2024-02-19 12:33:12 -08:00
primitives utils.int_to_bytes: guard against zero-length (#11173) 2024-06-29 15:23:57 +00:00
__init__.py Remove __future__ import from our code (#5610) 2020-12-09 00:35:11 -06:00
test_oid.py implement __deepcopy__() for ObjectIdentifier (fixes #7587) (#7597) 2022-09-11 16:26:42 +00:00