cryptography 48.0.1__tar.gz → 49.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cryptography-49.0.0/AGENTS.md +19 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/CHANGELOG.rst +69 -0
- cryptography-49.0.0/CLAUDE.md +19 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/Cargo.lock +28 -29
- {cryptography-48.0.1 → cryptography-49.0.0}/Cargo.toml +6 -6
- {cryptography-48.0.1 → cryptography-49.0.0}/PKG-INFO +1 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/test-vectors.rst +1 -3
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/asn1/reference.rst +53 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/mldsa.rst +102 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/hpke.rst +41 -4
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/symmetric-encryption.rst +17 -19
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/installation.rst +2 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/spelling_wordlist.txt +3 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/reference.rst +101 -10
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/verification.rst +6 -9
- {cryptography-48.0.1 → cryptography-49.0.0}/pyproject.toml +2 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/release.py +30 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/asn1.py +0 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/nid.py +0 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/ssl.py +0 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/x509.py +0 -24
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/x509_vfy.py +1 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/x509name.py +0 -1
- cryptography-49.0.0/src/_cffi_src/openssl/x509v3.py +29 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/__about__.py +1 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/_oid.py +12 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/asn1/__init__.py +2 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/asn1/asn1.py +115 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/backends/openssl/backend.py +2 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/declarative_asn1.pyi +9 -3
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/hpke.pyi +1 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/x509.pyi +1 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/openssl/binding.py +2 -17
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/mldsa.py +63 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/types.py +9 -41
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/ciphers/modes.py +2 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/base.py +26 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/name.py +7 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-cffi/build.rs +45 -19
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/pkcs8.rs +4 -61
- cryptography-49.0.0/src/rust/cryptography-openssl/src/mldsa.rs +494 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/mlkem.rs +24 -15
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/common.rs +19 -15
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/lib.rs +240 -19
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/policy/extension.rs +127 -8
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/policy/mod.rs +11 -4
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/types.rs +111 -54
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/asn1.rs +34 -3
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/aead.rs +151 -238
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/ciphers.rs +82 -14
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/dh.rs +18 -10
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/hpke.rs +35 -24
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/keys.rs +10 -10
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/mldsa.rs +102 -6
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/mlkem.rs +2 -4
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/declarative_asn1/decode.rs +114 -11
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/declarative_asn1/encode.rs +53 -11
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/declarative_asn1/types.rs +81 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/lib.rs +1 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/pkcs12.rs +1 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/pkcs7.rs +1 -1
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/types.rs +25 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/certificate.rs +20 -34
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/common.rs +9 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/crl.rs +2 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/csr.rs +2 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/sign.rs +81 -58
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/verify/extension_policy.rs +29 -51
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/asn1/test_api.py +101 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/asn1/test_serialization.py +691 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_chacha20.py +66 -2
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_ciphers.py +7 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hpke.py +16 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_mldsa.py +96 -0
- cryptography-49.0.0/tests/hazmat/primitives/twofactor/__init__.py +3 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_mldsa.py +62 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_x509.py +370 -17
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_x509_crlbuilder.py +59 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/verification/test_limbo.py +14 -11
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/verification/test_verification.py +378 -10
- cryptography-48.0.1/AGENTS.md +0 -17
- cryptography-48.0.1/CLAUDE.md +0 -17
- cryptography-48.0.1/docs/development/custom-vectors/chacha20/generate_chacha20_overflow.py +0 -47
- cryptography-48.0.1/docs/development/custom-vectors/chacha20/verify_chacha20_overflow.py +0 -67
- cryptography-48.0.1/docs/development/custom-vectors/chacha20.rst +0 -29
- cryptography-48.0.1/src/_cffi_src/openssl/x509v3.py +0 -56
- cryptography-48.0.1/src/rust/cryptography-openssl/src/mldsa.rs +0 -442
- {cryptography-48.0.1 → cryptography-49.0.0}/.gitattributes +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/.gitignore +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/CONTRIBUTING.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/LICENSE +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/LICENSE.APACHE +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/LICENSE.BSD +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/README.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/Makefile +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/_ext/cryptography-docs.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/_ext/linkcode_res.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/_static/.keep +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/_templates/layout.html +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/api-stability.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/changelog.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/community.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/conf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/c-bindings.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/aes-192-gcm-siv/generate_aes192gcmsiv.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/aes-192-gcm-siv/verify-aes192gcmsiv/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/aes-192-gcm-siv/verify-aes192gcmsiv/src/main.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/aes-192-gcm-siv.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/arc4/generate_arc4.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/arc4/verify_arc4.go +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/arc4.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/cast5/generate_cast5.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/cast5/verify_cast5.go +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/cast5.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/hkdf/generate_hkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/hkdf/verify_hkdf.go +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/hkdf.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/idea/generate_idea.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/idea/verify_idea.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/idea.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rc2/genrc2.go +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rc2/go.mod +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rc2/rc2/rc2.go +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rc2.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rsa-oaep-sha2/VerifyRSAOAEPSHA2.java +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rsa-oaep-sha2/generate_rsa_oaep_sha2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/rsa-oaep-sha2.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/secp256k1/generate_secp256k1.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/secp256k1/verify_secp256k1.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/secp256k1.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/seed/generate_seed.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/seed/verify_seed.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/custom-vectors/seed.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/getting-started.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/reviewing-patches.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/development/submitting-patches.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/doing-a-release.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/exceptions.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/faq.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/fernet.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/glossary.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/asn1/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/asn1/tutorial.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/decrepit/ciphers.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/decrepit/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/decrepit/modes.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/aead.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/cloudhsm.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/dh.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/dsa.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/ec.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/ed25519.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/ed448.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/mlkem.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/rsa.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/serialization.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/utils.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/x25519.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/asymmetric/x448.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/constant-time.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/cryptographic-hashes.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/key-derivation-functions.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/keywrap.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/mac/cmac.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/mac/hmac.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/mac/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/mac/poly1305.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/padding.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/hazmat/primitives/twofactor.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/limitations.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/make.bat +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/openssl.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/random-numbers.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/security.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/statements/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/statements/state-of-openssl.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/certificate-transparency.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/index.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/ocsp.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/docs/x509/tutorial.rst +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/noxfile.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/build_openssl.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/bignum.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/bio.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/crypto.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/cryptography.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/dh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/dsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/ec.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/engine.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/err.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/evp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/objects.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/opensslv.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/pem.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/rand.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/openssl/rsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/_cffi_src/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/exceptions.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/fernet.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/backends/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/backends/openssl/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/__init__.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/_openssl.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/asn1.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/exceptions.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/ocsp.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/__init__.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/aead.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/cmac.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/dh.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/dsa.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/ec.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/ed448.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/hashes.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/hmac.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/kdf.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/keys.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/mldsa.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/mlkem.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/rsa.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/x25519.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/openssl/x448.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/pkcs12.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/pkcs7.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/_rust/test_support.pyi +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/openssl/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/bindings/openssl/_conditional.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/decrepit/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/decrepit/ciphers/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/decrepit/ciphers/algorithms.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/decrepit/ciphers/modes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/_asymmetric.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/_cipheralgorithm.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/_modes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/_serialization.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/dh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/dsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/ec.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/ed25519.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/ed448.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/mlkem.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/padding.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/rsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/x25519.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/asymmetric/x448.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/ciphers/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/ciphers/aead.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/ciphers/algorithms.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/ciphers/base.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/cmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/constant_time.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/hashes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/hmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/hpke.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/argon2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/concatkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/hkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/kbkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/pbkdf2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/scrypt.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/kdf/x963kdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/keywrap.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/padding.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/poly1305.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/serialization/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/serialization/base.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/serialization/pkcs12.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/serialization/pkcs7.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/serialization/ssh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/twofactor/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/twofactor/hotp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/hazmat/primitives/twofactor/totp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/py.typed +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/certificate_transparency.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/extensions.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/general_name.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/ocsp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/oid.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/cryptography/x509/verification.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/build.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-cffi/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-cffi/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/src/constant_time.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/src/encoding.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/src/pbkdf1.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-crypto/src/pkcs12.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-keepalive/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-keepalive/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/build.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/dsa.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/ec.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/pbe.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/pem.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/rsa.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/spki.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-key-parsing/src/utils.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/build.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/aead.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/cmac.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/fips.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/hmac.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/poly1305.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/rand.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-openssl/src/utils.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/certificate.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/crl.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/csr.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/ec_constants.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/extensions.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/lib.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/name.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/ocsp_req.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/ocsp_resp.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/oid.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/pkcs12.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/pkcs7.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509/src/pkcs8.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/Cargo.toml +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/certificate.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/ops.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/cryptography-x509-verification/src/trust_store.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/cipher_registry.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/cmac.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/dsa.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/ec.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/ed25519.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/ed448.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/hashes.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/hmac.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/kdf.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/mod.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/poly1305.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/rand.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/rsa.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/utils.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/x25519.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/backend/x448.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/buf.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/declarative_asn1/asn1.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/declarative_asn1/mod.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/error.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/exceptions.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/oid.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/padding.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/serialization.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/test_support.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/extensions.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/mod.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/ocsp.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/ocsp_req.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/ocsp_resp.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/sct.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/verify/mod.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/src/rust/src/x509/verify/policy.rs +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_aead.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_ec_load.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_fernet.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_hashes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_hkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_hmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/bench/test_x509.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/conftest.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/deprecated_module.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/doubles.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/__init__.py +0 -0
- {cryptography-48.0.1/tests/hazmat/backends → cryptography-49.0.0/tests/hazmat/asn1}/__init__.py +0 -0
- {cryptography-48.0.1/tests/hazmat/primitives → cryptography-49.0.0/tests/hazmat/backends}/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/backends/test_openssl.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/bindings/test_openssl.py +0 -0
- {cryptography-48.0.1/tests/hazmat/primitives/decrepit → cryptography-49.0.0/tests/hazmat/primitives}/__init__.py +0 -0
- {cryptography-48.0.1/tests/hazmat/primitives/twofactor → cryptography-49.0.0/tests/hazmat/primitives/decrepit}/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/decrepit/test_3des.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/decrepit/test_algorithms.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/decrepit/test_arc4.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/decrepit/test_rc2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/fixtures_dh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/fixtures_dsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/fixtures_ec.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/fixtures_rsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_aead.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_aes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_aes_gcm.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_argon2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_asym_utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_block.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_camellia.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_cmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_concatkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_constant_time.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_dh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_dsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_ec.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_ed25519.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_ed448.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hash_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hashes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hkdf_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_hmac_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_kbkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_kbkdf_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_keywrap.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_mlkem.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_padding.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_pbkdf2hmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_pbkdf2hmac_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_pkcs12.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_pkcs7.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_poly1305.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_rsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_scrypt.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_serialization.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_sm4.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_ssh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_x25519.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_x448.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_x963_vectors.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_x963kdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/test_xofhash.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/twofactor/test_hotp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/twofactor/test_totp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/primitives/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/hazmat/test_oid.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_cryptography_utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_doubles.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_fernet.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_meta.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/test_warnings.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_aes.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_chacha20poly1305.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_cmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_dsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_ecdh.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_ecdsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_eddsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_hkdf.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_hmac.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_keywrap.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_mlkem.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_pbkdf2.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_rsa.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_x25519.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/test_x448.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/wycheproof/utils.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/__init__.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_name.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_ocsp.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_x509_ext.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/test_x509_revokedcertbuilder.py +0 -0
- {cryptography-48.0.1 → cryptography-49.0.0}/tests/x509/verification/__init__.py +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# cryptography
|
|
2
|
+
|
|
3
|
+
Hybrid Python + Rust project. The Python package lives in `src/cryptography/`; the Rust extension (PyO3) lives in `src/rust/`. CFFI bindings to OpenSSL/LibreSSL/BoringSSL/AWS-LC are generated from `src/_cffi_src/`. Test vectors live in `vectors/` (an installable sub-package).
|
|
4
|
+
|
|
5
|
+
## Running tests
|
|
6
|
+
|
|
7
|
+
Use `nox -e local` to run the full local check: it formats, lints, and type-checks Python and Rust, then runs the Python and Rust test suites. This is the canonical command — never invoke any test, build, lint, or format Python or Rust tools directly.
|
|
8
|
+
|
|
9
|
+
Other useful sessions: `nox -e tests`, `nox -e tests-nocoverage`, `nox -e rust`, `nox -e docs`, `nox -e flake`.
|
|
10
|
+
|
|
11
|
+
To test against different versions of OpenSSL, you can set the `OPENSSL_DIR` environment variable to the path to an OpenSSL/BoringSSL/LibreSSL/AWS-LC installation.
|
|
12
|
+
|
|
13
|
+
## Package management
|
|
14
|
+
|
|
15
|
+
Use `uv`, not `pip`, for any Python package installation or environment management. `noxfile.py` already sets `default_venv_backend = "uv"`.
|
|
16
|
+
|
|
17
|
+
## Changelog
|
|
18
|
+
|
|
19
|
+
User-visible changes go in `CHANGELOG.rst` under the unreleased section.
|
|
@@ -1,6 +1,75 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
.. _v49-0-0:
|
|
5
|
+
|
|
6
|
+
49.0.0 - 2026-06-12
|
|
7
|
+
~~~~~~~~~~~~~~~~~~~
|
|
8
|
+
|
|
9
|
+
* **BACKWARDS INCOMPATIBLE:** Support for ``x86_64`` macOS has been removed.
|
|
10
|
+
We now only publish ``arm64`` wheels for macOS.
|
|
11
|
+
* **BACKWARDS INCOMPATIBLE:** Support for 32-bit Windows has been removed.
|
|
12
|
+
Users should move to a 64-bit Python installation.
|
|
13
|
+
* **BACKWARDS INCOMPATIBLE:** Removed the deprecated
|
|
14
|
+
``PUBLIC_KEY_TYPES``, ``PRIVATE_KEY_TYPES``,
|
|
15
|
+
``CERTIFICATE_PRIVATE_KEY_TYPES``, ``CERTIFICATE_ISSUER_PUBLIC_KEY_TYPES``,
|
|
16
|
+
and ``CERTIFICATE_PUBLIC_KEY_TYPES`` type aliases. Use
|
|
17
|
+
``PublicKeyTypes``, ``PrivateKeyTypes``, ``CertificateIssuerPrivateKeyTypes``,
|
|
18
|
+
``CertificateIssuerPublicKeyTypes``, and ``CertificatePublicKeyTypes``
|
|
19
|
+
instead. These were deprecated in version 40.0.
|
|
20
|
+
* **BACKWARDS INCOMPATIBLE:** :class:`~cryptography.hazmat.primitives.ciphers.algorithms.ChaCha20`
|
|
21
|
+
now treats the first 4 bytes of the ``nonce`` as a 32-bit little-endian block
|
|
22
|
+
counter (as defined in :rfc:`7539`) and tracks the number of bytes processed.
|
|
23
|
+
Attempting to encrypt or decrypt more data than the counter allows before it
|
|
24
|
+
would overflow now raises a :class:`ValueError` rather than silently diverging
|
|
25
|
+
from RFC 7539. Setting the counter portion of the ``nonce`` to zero allows
|
|
26
|
+
encrypting up to 256 GiB with a given nonce.
|
|
27
|
+
* **BACKWARDS INCOMPATIBLE:** Loading an X.509 certificate whose ECDSA or DSA
|
|
28
|
+
signature ``AlgorithmIdentifier`` contains encoded NULL parameters now raises
|
|
29
|
+
a :class:`ValueError`. Such certificates are invalid, but older versions of
|
|
30
|
+
Java emitted them; previously they loaded with a deprecation warning.
|
|
31
|
+
* Fixed cross-compilation of the CFFI bindings when ``PYO3_CROSS_LIB_DIR``
|
|
32
|
+
is set. The build now derives the Python include directory from
|
|
33
|
+
``PYO3_CROSS_LIB_DIR`` instead of querying the host interpreter, which
|
|
34
|
+
previously caused the build to fail during cross-compilations for embedded
|
|
35
|
+
systems, on hosts which have same-version Python development headers
|
|
36
|
+
installed as the target Python.
|
|
37
|
+
* Added support for signing and verifying X.509 certificates, certificate
|
|
38
|
+
signing requests, and certificate revocation lists with
|
|
39
|
+
:doc:`/hazmat/primitives/asymmetric/mldsa` keys, as well as loading
|
|
40
|
+
certificates that contain ML-DSA public keys.
|
|
41
|
+
* Added :meth:`~cryptography.hazmat.primitives.hpke.KEM.enc_length` to
|
|
42
|
+
:class:`~cryptography.hazmat.primitives.hpke.KEM` so callers can split the
|
|
43
|
+
encapsulated key from the ciphertext returned by
|
|
44
|
+
:meth:`~cryptography.hazmat.primitives.hpke.Suite.encrypt`.
|
|
45
|
+
* :meth:`~cryptography.x509.verification.ExtensionPolicy.require_present`,
|
|
46
|
+
:meth:`~cryptography.x509.verification.ExtensionPolicy.may_be_present`, and
|
|
47
|
+
:meth:`~cryptography.x509.verification.ExtensionPolicy.require_not_present`
|
|
48
|
+
now accept any extension type. Previously only a fixed set of extension
|
|
49
|
+
types was supported, which made it impossible to account for otherwise
|
|
50
|
+
unrecognized critical extensions during path validation.
|
|
51
|
+
* Added support for using :class:`~cryptography.x509.Certificate`,
|
|
52
|
+
:class:`~cryptography.x509.CertificateSigningRequest`, and
|
|
53
|
+
:class:`~cryptography.x509.CertificateRevocationList` as field types in
|
|
54
|
+
:doc:`/hazmat/asn1/index` structures.
|
|
55
|
+
* Added :func:`~cryptography.hazmat.asn1.value_set`, a class decorator that
|
|
56
|
+
registers an :class:`enum.Enum` subclass as an ASN.1 value set: members
|
|
57
|
+
are encoded as their underlying value, and decoding fails if the decoded
|
|
58
|
+
value does not match one of the declared members.
|
|
59
|
+
* Added :meth:`~cryptography.x509.Name.from_bytes` for parsing a
|
|
60
|
+
:class:`~cryptography.x509.Name` from DER bytes, the inverse of
|
|
61
|
+
:meth:`~cryptography.x509.Name.public_bytes`.
|
|
62
|
+
* Added the ``rsa_padding`` keyword-only parameter to
|
|
63
|
+
:meth:`~cryptography.x509.CertificateBuilder.public_key`. Passing the
|
|
64
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` class
|
|
65
|
+
(not an instance) encodes an RSA subject public key in the certificate's
|
|
66
|
+
``subjectPublicKeyInfo`` with the ``id-RSASSA-PSS`` OID and no
|
|
67
|
+
parameters.
|
|
68
|
+
* Added external mu (message representative) support to
|
|
69
|
+
:doc:`/hazmat/primitives/asymmetric/mldsa` via the
|
|
70
|
+
``sign_mu`` and ``verify_mu`` methods, which sign and verify a precomputed
|
|
71
|
+
64-byte ``mu`` as defined in FIPS 204.
|
|
72
|
+
|
|
4
73
|
.. _v48-0-1:
|
|
5
74
|
|
|
6
75
|
48.0.1 - 2026-06-09
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# cryptography
|
|
2
|
+
|
|
3
|
+
Hybrid Python + Rust project. The Python package lives in `src/cryptography/`; the Rust extension (PyO3) lives in `src/rust/`. CFFI bindings to OpenSSL/LibreSSL/BoringSSL/AWS-LC are generated from `src/_cffi_src/`. Test vectors live in `vectors/` (an installable sub-package).
|
|
4
|
+
|
|
5
|
+
## Running tests
|
|
6
|
+
|
|
7
|
+
Use `nox -e local` to run the full local check: it formats, lints, and type-checks Python and Rust, then runs the Python and Rust test suites. This is the canonical command — never invoke any test, build, lint, or format Python or Rust tools directly.
|
|
8
|
+
|
|
9
|
+
Other useful sessions: `nox -e tests`, `nox -e tests-nocoverage`, `nox -e rust`, `nox -e docs`, `nox -e flake`.
|
|
10
|
+
|
|
11
|
+
To test against different versions of OpenSSL, you can set the `OPENSSL_DIR` environment variable to the path to an OpenSSL/BoringSSL/LibreSSL/AWS-LC installation.
|
|
12
|
+
|
|
13
|
+
## Package management
|
|
14
|
+
|
|
15
|
+
Use `uv`, not `pip`, for any Python package installation or environment management. `noxfile.py` already sets `default_venv_backend = "uv"`.
|
|
16
|
+
|
|
17
|
+
## Changelog
|
|
18
|
+
|
|
19
|
+
User-visible changes go in `CHANGELOG.rst` under the unreleased section.
|
|
@@ -31,15 +31,15 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
|
31
31
|
|
|
32
32
|
[[package]]
|
|
33
33
|
name = "bitflags"
|
|
34
|
-
version = "2.
|
|
34
|
+
version = "2.13.0"
|
|
35
35
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
-
checksum = "
|
|
36
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
37
37
|
|
|
38
38
|
[[package]]
|
|
39
39
|
name = "cc"
|
|
40
|
-
version = "1.2.
|
|
40
|
+
version = "1.2.64"
|
|
41
41
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
-
checksum = "
|
|
42
|
+
checksum = "dad887fd958be91b5098c0248def011f4523ab786cd411be668777e55063501f"
|
|
43
43
|
dependencies = [
|
|
44
44
|
"find-msvc-tools",
|
|
45
45
|
"shlex",
|
|
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
|
53
53
|
|
|
54
54
|
[[package]]
|
|
55
55
|
name = "cryptography-cffi"
|
|
56
|
-
version = "0.
|
|
56
|
+
version = "0.49.0"
|
|
57
57
|
dependencies = [
|
|
58
58
|
"cc",
|
|
59
59
|
"openssl-sys",
|
|
@@ -62,21 +62,21 @@ dependencies = [
|
|
|
62
62
|
|
|
63
63
|
[[package]]
|
|
64
64
|
name = "cryptography-crypto"
|
|
65
|
-
version = "0.
|
|
65
|
+
version = "0.49.0"
|
|
66
66
|
dependencies = [
|
|
67
67
|
"openssl",
|
|
68
68
|
]
|
|
69
69
|
|
|
70
70
|
[[package]]
|
|
71
71
|
name = "cryptography-keepalive"
|
|
72
|
-
version = "0.
|
|
72
|
+
version = "0.49.0"
|
|
73
73
|
dependencies = [
|
|
74
74
|
"pyo3",
|
|
75
75
|
]
|
|
76
76
|
|
|
77
77
|
[[package]]
|
|
78
78
|
name = "cryptography-key-parsing"
|
|
79
|
-
version = "0.
|
|
79
|
+
version = "0.49.0"
|
|
80
80
|
dependencies = [
|
|
81
81
|
"asn1",
|
|
82
82
|
"cfg-if",
|
|
@@ -90,7 +90,7 @@ dependencies = [
|
|
|
90
90
|
|
|
91
91
|
[[package]]
|
|
92
92
|
name = "cryptography-openssl"
|
|
93
|
-
version = "0.
|
|
93
|
+
version = "0.49.0"
|
|
94
94
|
dependencies = [
|
|
95
95
|
"cfg-if",
|
|
96
96
|
"foreign-types",
|
|
@@ -101,7 +101,7 @@ dependencies = [
|
|
|
101
101
|
|
|
102
102
|
[[package]]
|
|
103
103
|
name = "cryptography-rust"
|
|
104
|
-
version = "0.
|
|
104
|
+
version = "0.49.0"
|
|
105
105
|
dependencies = [
|
|
106
106
|
"asn1",
|
|
107
107
|
"base64",
|
|
@@ -124,14 +124,14 @@ dependencies = [
|
|
|
124
124
|
|
|
125
125
|
[[package]]
|
|
126
126
|
name = "cryptography-x509"
|
|
127
|
-
version = "0.
|
|
127
|
+
version = "0.49.0"
|
|
128
128
|
dependencies = [
|
|
129
129
|
"asn1",
|
|
130
130
|
]
|
|
131
131
|
|
|
132
132
|
[[package]]
|
|
133
133
|
name = "cryptography-x509-verification"
|
|
134
|
-
version = "0.
|
|
134
|
+
version = "0.49.0"
|
|
135
135
|
dependencies = [
|
|
136
136
|
"asn1",
|
|
137
137
|
"cryptography-x509",
|
|
@@ -185,9 +185,9 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
|
185
185
|
|
|
186
186
|
[[package]]
|
|
187
187
|
name = "openssl"
|
|
188
|
-
version = "0.10.
|
|
188
|
+
version = "0.10.81"
|
|
189
189
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
190
|
-
checksum = "
|
|
190
|
+
checksum = "77823a27f0babb03091cb9ed9ef80af3b39dbc82f97e8fa530374b7dafd87a45"
|
|
191
191
|
dependencies = [
|
|
192
192
|
"bitflags",
|
|
193
193
|
"cfg-if",
|
|
@@ -210,9 +210,9 @@ dependencies = [
|
|
|
210
210
|
|
|
211
211
|
[[package]]
|
|
212
212
|
name = "openssl-sys"
|
|
213
|
-
version = "0.9.
|
|
213
|
+
version = "0.9.117"
|
|
214
214
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
-
checksum = "
|
|
215
|
+
checksum = "b47e7e6bb2c38cd930d25a23b40fa52e068c10e85f3e03a7f5ba5aaca5713695"
|
|
216
216
|
dependencies = [
|
|
217
217
|
"cc",
|
|
218
218
|
"libc",
|
|
@@ -252,9 +252,9 @@ dependencies = [
|
|
|
252
252
|
|
|
253
253
|
[[package]]
|
|
254
254
|
name = "pyo3"
|
|
255
|
-
version = "0.
|
|
255
|
+
version = "0.29.0"
|
|
256
256
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
-
checksum = "
|
|
257
|
+
checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
|
|
258
258
|
dependencies = [
|
|
259
259
|
"libc",
|
|
260
260
|
"once_cell",
|
|
@@ -266,18 +266,18 @@ dependencies = [
|
|
|
266
266
|
|
|
267
267
|
[[package]]
|
|
268
268
|
name = "pyo3-build-config"
|
|
269
|
-
version = "0.
|
|
269
|
+
version = "0.29.0"
|
|
270
270
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
271
|
-
checksum = "
|
|
271
|
+
checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
|
|
272
272
|
dependencies = [
|
|
273
273
|
"target-lexicon",
|
|
274
274
|
]
|
|
275
275
|
|
|
276
276
|
[[package]]
|
|
277
277
|
name = "pyo3-ffi"
|
|
278
|
-
version = "0.
|
|
278
|
+
version = "0.29.0"
|
|
279
279
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
280
|
-
checksum = "
|
|
280
|
+
checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
|
|
281
281
|
dependencies = [
|
|
282
282
|
"libc",
|
|
283
283
|
"pyo3-build-config",
|
|
@@ -285,9 +285,9 @@ dependencies = [
|
|
|
285
285
|
|
|
286
286
|
[[package]]
|
|
287
287
|
name = "pyo3-macros"
|
|
288
|
-
version = "0.
|
|
288
|
+
version = "0.29.0"
|
|
289
289
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
290
|
-
checksum = "
|
|
290
|
+
checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
|
|
291
291
|
dependencies = [
|
|
292
292
|
"proc-macro2",
|
|
293
293
|
"pyo3-macros-backend",
|
|
@@ -297,13 +297,12 @@ dependencies = [
|
|
|
297
297
|
|
|
298
298
|
[[package]]
|
|
299
299
|
name = "pyo3-macros-backend"
|
|
300
|
-
version = "0.
|
|
300
|
+
version = "0.29.0"
|
|
301
301
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
302
|
-
checksum = "
|
|
302
|
+
checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
|
|
303
303
|
dependencies = [
|
|
304
304
|
"heck",
|
|
305
305
|
"proc-macro2",
|
|
306
|
-
"pyo3-build-config",
|
|
307
306
|
"quote",
|
|
308
307
|
"syn",
|
|
309
308
|
]
|
|
@@ -325,9 +324,9 @@ checksum = "b12e76d157a900eb52e81bc6e9f3069344290341720e9178cde2407113ac8d89"
|
|
|
325
324
|
|
|
326
325
|
[[package]]
|
|
327
326
|
name = "shlex"
|
|
328
|
-
version = "
|
|
327
|
+
version = "2.0.1"
|
|
329
328
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
-
checksum = "
|
|
329
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
331
330
|
|
|
332
331
|
[[package]]
|
|
333
332
|
name = "syn"
|
|
@@ -12,7 +12,7 @@ members = [
|
|
|
12
12
|
]
|
|
13
13
|
|
|
14
14
|
[workspace.package]
|
|
15
|
-
version = "0.
|
|
15
|
+
version = "0.49.0"
|
|
16
16
|
authors = ["The cryptography developers <cryptography-dev@python.org>"]
|
|
17
17
|
edition = "2021"
|
|
18
18
|
publish = false
|
|
@@ -23,15 +23,15 @@ license = "Apache-2.0 OR BSD-3-Clause"
|
|
|
23
23
|
[workspace.dependencies]
|
|
24
24
|
asn1 = { version = "0.24.1", default-features = false }
|
|
25
25
|
base64 = "0.22"
|
|
26
|
-
cc = "1.2.
|
|
26
|
+
cc = "1.2.63"
|
|
27
27
|
cfg-if = "1"
|
|
28
28
|
foreign-types = "0.3"
|
|
29
29
|
foreign-types-shared = "0.1"
|
|
30
|
-
openssl = "0.10.
|
|
31
|
-
openssl-sys = "0.9.
|
|
30
|
+
openssl = "0.10.80"
|
|
31
|
+
openssl-sys = "0.9.116"
|
|
32
32
|
pem = { version = "3", default-features = false }
|
|
33
|
-
pyo3 = { version = "0.
|
|
34
|
-
pyo3-build-config = { version = "0.
|
|
33
|
+
pyo3 = { version = "0.29", features = ["abi3"] }
|
|
34
|
+
pyo3-build-config = { version = "0.29" }
|
|
35
35
|
self_cell = "1"
|
|
36
36
|
|
|
37
37
|
[profile.release]
|
|
@@ -1173,8 +1173,7 @@ Symmetric ciphers
|
|
|
1173
1173
|
* CAST5 (ECB) from :rfc:`2144`.
|
|
1174
1174
|
* CAST5 (CBC, CFB, OFB) generated by this project.
|
|
1175
1175
|
See: :doc:`/development/custom-vectors/cast5`
|
|
1176
|
-
* ChaCha20 from :rfc:`7539
|
|
1177
|
-
See: :doc:`/development/custom-vectors/chacha20`
|
|
1176
|
+
* ChaCha20 from :rfc:`7539`.
|
|
1178
1177
|
* ChaCha20Poly1305 from :rfc:`7539`, `OpenSSL's evpciph.txt`_, and the
|
|
1179
1178
|
`BoringSSL ChaCha20Poly1305 tests`_.
|
|
1180
1179
|
* IDEA (ECB) from the `NESSIE IDEA vectors`_ created by `NESSIE`_.
|
|
@@ -1220,7 +1219,6 @@ Created Vectors
|
|
|
1220
1219
|
custom-vectors/aes-192-gcm-siv
|
|
1221
1220
|
custom-vectors/arc4
|
|
1222
1221
|
custom-vectors/cast5
|
|
1223
|
-
custom-vectors/chacha20
|
|
1224
1222
|
custom-vectors/idea
|
|
1225
1223
|
custom-vectors/seed
|
|
1226
1224
|
custom-vectors/hkdf
|
|
@@ -46,7 +46,8 @@ Serialization
|
|
|
46
46
|
Serialize an ASN.1 object into DER-encoded bytes.
|
|
47
47
|
|
|
48
48
|
:param value: The ASN.1 object to encode. Must be an instance of a
|
|
49
|
-
class decorated with :func:`sequence
|
|
49
|
+
class decorated with :func:`sequence`, :func:`set`, or
|
|
50
|
+
:func:`value_set`, or a primitive ASN.1 type
|
|
50
51
|
(``int``, ``bool``, ``bytes``, ``str``,
|
|
51
52
|
:class:`~cryptography.x509.ObjectIdentifier`,
|
|
52
53
|
:class:`PrintableString`, :class:`IA5String`, :class:`UTCTime`,
|
|
@@ -77,6 +78,24 @@ The following built-in Python types are supported as ASN.1 field types:
|
|
|
77
78
|
Additionally, :class:`~cryptography.x509.ObjectIdentifier` maps to
|
|
78
79
|
``OBJECT IDENTIFIER``.
|
|
79
80
|
|
|
81
|
+
.. versionadded:: 49.0.0
|
|
82
|
+
|
|
83
|
+
:class:`~cryptography.x509.Certificate`,
|
|
84
|
+
:class:`~cryptography.x509.CertificateSigningRequest`, and
|
|
85
|
+
:class:`~cryptography.x509.CertificateRevocationList` can also be used as
|
|
86
|
+
field types. They are encoded by embedding their DER serialization, and
|
|
87
|
+
decoded by parsing the field as the corresponding X.509 object. These
|
|
88
|
+
fields cannot have :class:`Implicit` annotations.
|
|
89
|
+
|
|
90
|
+
.. code-block:: python
|
|
91
|
+
|
|
92
|
+
from cryptography import x509
|
|
93
|
+
from cryptography.hazmat import asn1
|
|
94
|
+
|
|
95
|
+
@asn1.sequence
|
|
96
|
+
class Example:
|
|
97
|
+
cert: x509.Certificate
|
|
98
|
+
|
|
80
99
|
The following decorators and types are provided for the rest of the ASN.1 types
|
|
81
100
|
that have no direct Python equivalent:
|
|
82
101
|
|
|
@@ -136,6 +155,39 @@ that have no direct Python equivalent:
|
|
|
136
155
|
...
|
|
137
156
|
ValueError: error parsing asn1 value: ...
|
|
138
157
|
|
|
158
|
+
.. decorator:: value_set(value_type)
|
|
159
|
+
|
|
160
|
+
A class decorator that registers an :class:`enum.Enum` subclass as an
|
|
161
|
+
ASN.1 value set: a set of named values of a single underlying type.
|
|
162
|
+
All the member values must be instances of ``value_type``.
|
|
163
|
+
|
|
164
|
+
Members are encoded exactly as their underlying value. When decoding,
|
|
165
|
+
the value is decoded and mapped back to the corresponding enum member;
|
|
166
|
+
decoding fails with :class:`ValueError` if the decoded value does not
|
|
167
|
+
match any member.
|
|
168
|
+
|
|
169
|
+
Fields of a value set type can be annotated with :class:`Explicit`,
|
|
170
|
+
:class:`Implicit`, and :class:`Default` using :class:`typing.Annotated`.
|
|
171
|
+
|
|
172
|
+
:param value_type: The underlying ASN.1 type of the member values.
|
|
173
|
+
:type value_type: :class:`type`
|
|
174
|
+
|
|
175
|
+
.. doctest::
|
|
176
|
+
|
|
177
|
+
>>> import enum
|
|
178
|
+
>>> from cryptography import x509
|
|
179
|
+
>>> from cryptography.hazmat import asn1
|
|
180
|
+
>>> @asn1.value_set(x509.ObjectIdentifier)
|
|
181
|
+
... class HashAlgorithm(enum.Enum):
|
|
182
|
+
... SHA_256 = x509.ObjectIdentifier("2.16.840.1.101.3.4.2.1")
|
|
183
|
+
... SHA_384 = x509.ObjectIdentifier("2.16.840.1.101.3.4.2.2")
|
|
184
|
+
>>> @asn1.sequence
|
|
185
|
+
... class Example:
|
|
186
|
+
... algorithm: HashAlgorithm
|
|
187
|
+
>>> encoded = asn1.encode_der(Example(algorithm=HashAlgorithm.SHA_256))
|
|
188
|
+
>>> asn1.decode_der(Example, encoded).algorithm
|
|
189
|
+
<HashAlgorithm.SHA_256: <ObjectIdentifier(oid=2.16.840.1.101.3.4.2.1, name=sha256)>>
|
|
190
|
+
|
|
139
191
|
.. class:: PrintableString(value)
|
|
140
192
|
|
|
141
193
|
Wraps ASN.1 ``PrintableString`` values. ``PrintableString`` is a restricted
|
|
@@ -95,6 +95,21 @@ Key interfaces
|
|
|
95
95
|
|
|
96
96
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
97
97
|
|
|
98
|
+
.. method:: sign_mu(mu)
|
|
99
|
+
|
|
100
|
+
.. versionadded:: 49.0.0
|
|
101
|
+
|
|
102
|
+
Sign a precomputed ``mu`` (message representative) using ML-DSA-44,
|
|
103
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
104
|
+
compute ``mu``, so you must compute it yourself.
|
|
105
|
+
|
|
106
|
+
:param mu: The 64-byte message representative.
|
|
107
|
+
:type mu: :term:`bytes-like`
|
|
108
|
+
|
|
109
|
+
:returns bytes: The signature (2420 bytes).
|
|
110
|
+
|
|
111
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
112
|
+
|
|
98
113
|
.. method:: private_bytes(encoding, format, encryption_algorithm)
|
|
99
114
|
|
|
100
115
|
Allows serialization of the key to bytes. Encoding (
|
|
@@ -227,6 +242,25 @@ Key interfaces
|
|
|
227
242
|
signature cannot be verified.
|
|
228
243
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
229
244
|
|
|
245
|
+
.. method:: verify_mu(signature, mu)
|
|
246
|
+
|
|
247
|
+
.. versionadded:: 49.0.0
|
|
248
|
+
|
|
249
|
+
Verify a signature over a precomputed ``mu`` (message representative),
|
|
250
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
251
|
+
compute ``mu``, so you must compute it yourself.
|
|
252
|
+
|
|
253
|
+
:param signature: The signature to verify.
|
|
254
|
+
:type signature: :term:`bytes-like`
|
|
255
|
+
|
|
256
|
+
:param mu: The 64-byte message representative.
|
|
257
|
+
:type mu: :term:`bytes-like`
|
|
258
|
+
|
|
259
|
+
:returns: None
|
|
260
|
+
:raises cryptography.exceptions.InvalidSignature: Raised when the
|
|
261
|
+
signature cannot be verified.
|
|
262
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
263
|
+
|
|
230
264
|
.. class:: MLDSA65PrivateKey
|
|
231
265
|
|
|
232
266
|
.. versionadded:: 47.0.0
|
|
@@ -281,6 +315,21 @@ Key interfaces
|
|
|
281
315
|
|
|
282
316
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
283
317
|
|
|
318
|
+
.. method:: sign_mu(mu)
|
|
319
|
+
|
|
320
|
+
.. versionadded:: 49.0.0
|
|
321
|
+
|
|
322
|
+
Sign a precomputed ``mu`` (message representative) using ML-DSA-65,
|
|
323
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
324
|
+
compute ``mu``, so you must compute it yourself.
|
|
325
|
+
|
|
326
|
+
:param mu: The 64-byte message representative.
|
|
327
|
+
:type mu: :term:`bytes-like`
|
|
328
|
+
|
|
329
|
+
:returns bytes: The signature (3309 bytes).
|
|
330
|
+
|
|
331
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
332
|
+
|
|
284
333
|
.. method:: private_bytes(encoding, format, encryption_algorithm)
|
|
285
334
|
|
|
286
335
|
Allows serialization of the key to bytes. Encoding (
|
|
@@ -413,6 +462,25 @@ Key interfaces
|
|
|
413
462
|
signature cannot be verified.
|
|
414
463
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
415
464
|
|
|
465
|
+
.. method:: verify_mu(signature, mu)
|
|
466
|
+
|
|
467
|
+
.. versionadded:: 49.0.0
|
|
468
|
+
|
|
469
|
+
Verify a signature over a precomputed ``mu`` (message representative),
|
|
470
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
471
|
+
compute ``mu``, so you must compute it yourself.
|
|
472
|
+
|
|
473
|
+
:param signature: The signature to verify.
|
|
474
|
+
:type signature: :term:`bytes-like`
|
|
475
|
+
|
|
476
|
+
:param mu: The 64-byte message representative.
|
|
477
|
+
:type mu: :term:`bytes-like`
|
|
478
|
+
|
|
479
|
+
:returns: None
|
|
480
|
+
:raises cryptography.exceptions.InvalidSignature: Raised when the
|
|
481
|
+
signature cannot be verified.
|
|
482
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
483
|
+
|
|
416
484
|
.. class:: MLDSA87PrivateKey
|
|
417
485
|
|
|
418
486
|
.. versionadded:: 47.0.0
|
|
@@ -467,6 +535,21 @@ Key interfaces
|
|
|
467
535
|
|
|
468
536
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
469
537
|
|
|
538
|
+
.. method:: sign_mu(mu)
|
|
539
|
+
|
|
540
|
+
.. versionadded:: 49.0.0
|
|
541
|
+
|
|
542
|
+
Sign a precomputed ``mu`` (message representative) using ML-DSA-87,
|
|
543
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
544
|
+
compute ``mu``, so you must compute it yourself.
|
|
545
|
+
|
|
546
|
+
:param mu: The 64-byte message representative.
|
|
547
|
+
:type mu: :term:`bytes-like`
|
|
548
|
+
|
|
549
|
+
:returns bytes: The signature (4627 bytes).
|
|
550
|
+
|
|
551
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
552
|
+
|
|
470
553
|
.. method:: private_bytes(encoding, format, encryption_algorithm)
|
|
471
554
|
|
|
472
555
|
Allows serialization of the key to bytes. Encoding (
|
|
@@ -599,5 +682,24 @@ Key interfaces
|
|
|
599
682
|
signature cannot be verified.
|
|
600
683
|
:raises ValueError: If the context is longer than 255 bytes.
|
|
601
684
|
|
|
685
|
+
.. method:: verify_mu(signature, mu)
|
|
686
|
+
|
|
687
|
+
.. versionadded:: 49.0.0
|
|
688
|
+
|
|
689
|
+
Verify a signature over a precomputed ``mu`` (message representative),
|
|
690
|
+
the "external mu" variant from FIPS 204. There is currently no API to
|
|
691
|
+
compute ``mu``, so you must compute it yourself.
|
|
692
|
+
|
|
693
|
+
:param signature: The signature to verify.
|
|
694
|
+
:type signature: :term:`bytes-like`
|
|
695
|
+
|
|
696
|
+
:param mu: The 64-byte message representative.
|
|
697
|
+
:type mu: :term:`bytes-like`
|
|
698
|
+
|
|
699
|
+
:returns: None
|
|
700
|
+
:raises cryptography.exceptions.InvalidSignature: Raised when the
|
|
701
|
+
signature cannot be verified.
|
|
702
|
+
:raises ValueError: If ``mu`` is not 64 bytes.
|
|
703
|
+
|
|
602
704
|
|
|
603
705
|
.. _`FIPS 204`: https://csrc.nist.gov/pubs/fips/204/final
|
|
@@ -53,8 +53,19 @@ specifying auxiliary authenticated information.
|
|
|
53
53
|
Encrypt a message using HPKE.
|
|
54
54
|
|
|
55
55
|
:param bytes plaintext: The message to encrypt.
|
|
56
|
-
:param public_key: The recipient's public key.
|
|
57
|
-
|
|
56
|
+
:param public_key: The recipient's public key. The type must match the
|
|
57
|
+
:class:`KEM` chosen for the suite:
|
|
58
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.x25519.X25519PublicKey`
|
|
59
|
+
for :attr:`KEM.X25519`;
|
|
60
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`
|
|
61
|
+
on the corresponding curve for :attr:`KEM.P256`,
|
|
62
|
+
:attr:`KEM.P384`, and :attr:`KEM.P521`;
|
|
63
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM768PublicKey`
|
|
64
|
+
for :attr:`KEM.MLKEM768`;
|
|
65
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM1024PublicKey`
|
|
66
|
+
for :attr:`KEM.MLKEM1024`;
|
|
67
|
+
:class:`MLKEM768X25519PublicKey` for :attr:`KEM.MLKEM768_X25519`;
|
|
68
|
+
and :class:`MLKEM1024P384PublicKey` for :attr:`KEM.MLKEM1024_P384`.
|
|
58
69
|
:param bytes info: Application-specific context string for binding the
|
|
59
70
|
encryption to a specific application or protocol.
|
|
60
71
|
:returns: The encapsulated key concatenated with ciphertext (enc || ct).
|
|
@@ -65,8 +76,19 @@ specifying auxiliary authenticated information.
|
|
|
65
76
|
Decrypt a message using HPKE.
|
|
66
77
|
|
|
67
78
|
:param bytes ciphertext: The enc || ct value from :meth:`encrypt`.
|
|
68
|
-
:param private_key: The recipient's private key.
|
|
69
|
-
|
|
79
|
+
:param private_key: The recipient's private key. The type must match the
|
|
80
|
+
:class:`KEM` chosen for the suite:
|
|
81
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.x25519.X25519PrivateKey`
|
|
82
|
+
for :attr:`KEM.X25519`;
|
|
83
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`
|
|
84
|
+
on the corresponding curve for :attr:`KEM.P256`,
|
|
85
|
+
:attr:`KEM.P384`, and :attr:`KEM.P521`;
|
|
86
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM768PrivateKey`
|
|
87
|
+
for :attr:`KEM.MLKEM768`;
|
|
88
|
+
:class:`~cryptography.hazmat.primitives.asymmetric.mlkem.MLKEM1024PrivateKey`
|
|
89
|
+
for :attr:`KEM.MLKEM1024`;
|
|
90
|
+
:class:`MLKEM768X25519PrivateKey` for :attr:`KEM.MLKEM768_X25519`;
|
|
91
|
+
and :class:`MLKEM1024P384PrivateKey` for :attr:`KEM.MLKEM1024_P384`.
|
|
70
92
|
:param bytes info: Application-specific context string (must match the
|
|
71
93
|
value used during encryption).
|
|
72
94
|
:returns: The decrypted plaintext.
|
|
@@ -77,6 +99,21 @@ specifying auxiliary authenticated information.
|
|
|
77
99
|
|
|
78
100
|
An enumeration of key encapsulation mechanisms.
|
|
79
101
|
|
|
102
|
+
.. method:: enc_length()
|
|
103
|
+
|
|
104
|
+
.. versionadded:: 49.0.0
|
|
105
|
+
|
|
106
|
+
:returns: The length in bytes of the encapsulated key (``enc``)
|
|
107
|
+
produced by this KEM. The ``enc`` is the prefix of the value
|
|
108
|
+
returned by :meth:`Suite.encrypt`, so this can be used to split
|
|
109
|
+
the result into ``enc`` and the AEAD ciphertext::
|
|
110
|
+
|
|
111
|
+
ciphertext = suite.encrypt(plaintext, public_key)
|
|
112
|
+
enc_len = KEM.X25519.enc_length()
|
|
113
|
+
enc, ct = ciphertext[:enc_len], ciphertext[enc_len:]
|
|
114
|
+
|
|
115
|
+
:rtype: int
|
|
116
|
+
|
|
80
117
|
.. attribute:: X25519
|
|
81
118
|
|
|
82
119
|
DHKEM(X25519, HKDF-SHA256)
|