cryptography/tests
Jean Paul Galea da1a30b4ea
KBKDF: add CounterLocation.MiddleFixed (#7489)
* KBKDF: add CounterLocation.MiddleFixed

* tests_kbkdf: add new tests

- Test CounterLocation.MiddleFixed and blocation=

* test_kbkdf_vectors: make use of MIDDLE_FIXED

* docs: document KBKDF CounterLocation.MiddleFixed

* s/blocation/break_location/g

* CHANGELOG: document KBKDF{HMAC,CMAC} CounterLocation.MiddleFixed #7489

* kbkdf: fixed is static across n iterations, only the counter changes

* kbkdf: check break_location is 0..len(fixed)

- Update tests to assert exception is raised when
    break_location < 0 or > len(fixed)

- When asserting for "break_location is ignored when MiddleFixed",
    use break_location=0 instead of =10,
    to ensure we don't raise because of break_location > len(fixed)

- Assert that the right error messages are returned to the user.

* kbkdf: keyword-only break_location

* docs: document kw-only KBKDF{HMAC,CMAC}
2022-08-15 08:19:12 -04:00
..
bench Added a benchmark for ChaCha20 AEAD (#7427) 2022-07-16 21:38:29 +00:00
hazmat KBKDF: add CounterLocation.MiddleFixed (#7489) 2022-08-15 08:19:12 -04:00
hypothesis Implement a parser for RFC4514 strings (#7055) 2022-04-16 10:21:45 +02:00
wycheproof fix typo in test name (#7426) 2022-07-16 21:31:50 +00:00
x509 Bump to rust-asn1 0.10 (#7395) 2022-07-05 00:42:00 +02:00
__init__.py
conftest.py
deprecated_module.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
doubles.py type a test double (#6723) 2021-12-21 21:10:54 -05:00
test_cryptography_utils.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_fernet.py Allow Fernet decryption to accept string tokens (#7116) 2022-04-29 22:27:47 +00:00
test_interfaces.py Remove explicit subclassing of object now that all classes are new-style (#6830) 2022-01-30 16:29:24 +00:00
test_meta.py add some more mypy flags (#6751) 2021-12-23 07:55:23 -05:00
test_rust_utils.py Added FixedPool abstraction for use in optimizing various types (#7303) 2022-07-16 13:50:46 -05:00
test_utils.py Resolve new flake8 errors (#7462) 2022-07-30 16:29:00 -10:00
test_warnings.py refactor utils.deprecated to be more mypy friendly (#6923) 2022-03-03 03:46:30 +08:00
utils.py KBKDF: add CounterLocation.MiddleFixed (#7489) 2022-08-15 08:19:12 -04:00