summaryrefslogtreecommitdiff
path: root/src/cryptography/hazmat/backends/openssl/aead.py
Commit message (Collapse)AuthorAgeFilesLines
* Use from __future__ import annotations everywhere (#8643)Alex Gaynor2023-03-311-12/+14
|
* Make Union type aliases a documented public API (#8168)Marti Raudsepp2023-03-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename Union type aliases to CamelCase Many `typing.Union` type aliases were previously using `UPPER_SNAKE_CASE`, but Python's convention is `CamelCase` for these (e.g. https://docs.python.org/3/library/typing.html#type-aliases) * Add utils.deprecated for the old non-underscore type aliases * Added documentation for new type aliases & minor tweaks * Use 'versionadded:: 40.0.0' * Fix CertificatePublicKeyTypes vs CertificateIssuerPublicKeyTypes. Rename CertificatePrivateKeyTypes to CertificateIssuerPrivateKeyTypes * Fix imports (ruff) * Fix one more versionadded * Tweak docs & Reorder: CertificateIssuerPublicKeyTypes before CertificateIssuerPrivateKeyTypes * Fix test mypy errors using cast() * Fix black, oops * Revert "Fix black, oops" This reverts commit 85344e231d697bdc0940e105f7aed729445f9743. * Revert "Fix test mypy errors using cast()" This reverts commit b272d8ca95fbbbc62060663f9e8930a139a7a43e. * Revert type of SubjectKeyIdentifier.from_public_key arg * Changelog tweak
* add support for bytes-like objects in data and associated_data in aead ↵Mat2023-02-021-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | algorithms (#8187) * add support for bytes-like objects in data and associated_data in aead algorithms * flake * flake again * rework AESSIV _check_params * flake and 80char columns * associated_data cannot be None in _check_params, set to [] in calling function * Update src/cryptography/hazmat/primitives/ciphers/aead.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> * flake fix --------- Co-authored-by: mat gas <none@none.com> Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* Switch from flake8 to ruff (#7920)Alex Gaynor2022-12-211-1/+0
| | | It's more than 60x faster.
* use fixed pool to improve perf of aead ChaCha20Poly1305 (#7601)Paul Kehrer2022-09-121-14/+70
| | | | | | | | * use fixed pool to improve perf of aead ChaCha20Poly1305 ~35-45% speedup on benchmarks when reusing the same key for multiple operations * remove unneeded call
* SIV support (#7029)Paul Kehrer2022-04-021-9/+48
| | | | | * SIV support * empty commit to see if codecov sees the 3.0 coverage this time
* small refactors for upcoming SIV support (#7028)Paul Kehrer2022-04-021-7/+9
| | | use f strings (why not) and internally use lists for processing AD
* simple internal aead typing (#6736)Paul Kehrer2021-12-221-7/+42
|
* OCB3 support (#6607)Paul Kehrer2021-11-141-3/+13
| | | | | * OCB3 support in aead package * improve comment
* Remove __future__ import from our code (#5610)Alex Gaynor2020-12-091-1/+0
|
* Paint it Black by the Rolling Stones (#5324)Alex Gaynor2020-07-201-11/+15
|
* Only EVP_CTRL_AEAD_SET_TAG in _aead_setup for CCM mode (#4916)Christian Heimes2019-06-051-1/+2
|
* Simplify string formatting (#4757)Alex Gaynor2019-02-201-2/+2
|
* support byteslike in aead for key and nonce (#4695)Paul Kehrer2019-01-151-2/+4
|
* add AESGCM AEAD support (#3785)Paul Kehrer2017-07-171-3/+5
| | | | | | | | * add AESGCM AEAD support * remove stray newline * move AESGCM docs above CCM
* AESCCM support (#3700)Paul Kehrer2017-07-161-9/+47
|
* use an instance in aead_cipher_supported (#3772)Paul Kehrer2017-07-091-11/+8
| | | | | | | | * use an instance in aead_cipher_supported * test for chacha20poly1305 compatibility via init exception * pep8
* stop using backend methods for chacha (#3765)Paul Kehrer2017-07-081-2/+13
|
* make the aead work a bit more generic (#3761)Paul Kehrer2017-07-081-0/+111