🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.python.announce
1 messages
1 total messages Started by Paul Kehrer Wed, 02 Dec 2026 00:27
[Python-announce] PyCA cryptography 51.0.0 released
#16
Author: Paul Kehrer
Date: Wed, 02 Dec 2026 00:27
75 lines
14282 bytes
PyCA cryptography 50.0.0 has been released to PyPI. cryptography includes
both high level recipes and low level interfaces to common
cryptographic algorithms
such as symmetric ciphers, asymmetric algorithms, message digests, X.509,
key derivation functions, and much more. We support Python 3.9+, and PyPy3
3.12.

Changelog (https://cryptography.io/en/latest/changelog/#v51-0-0):
* Updated Windows, macOS, and Linux wheels to be compiled with OpenSSL
4.1.1.
* We no longer publish wheels for PyPy 3.11; it can still be installed from
source. We now publish wheels for PyPy 3.12.
* Added BrainpoolP224R1 and BrainpoolP320R1, Brainpool curves specified in
RFC 5639.
* Added support for loading elliptic curve keys that contain explicit
encodings of the curves brainpoolP224r1, brainpoolP256r1, brainpoolP320r1,
brainpoolP384r1, and brainpoolP512r1.
* PKCS7SignatureBuilder now retains additional certificates when set_data
or add_signer is called after add_certificate.
* Require CFFI 2.1.1 or newer on Python 3.15 to avoid an ABI issue in
earlier CFFI releases.
* X.509 names now reject IA5String attributes containing non-ASCII
characters when parsing and serializing.
* load_der_private_key() and load_pem_private_key() now accept RFC 5958
OneAsymmetricKey (PKCS8 version 2).
* Updated the minimum supported Rust version (MSRV) to 1.85.0, from 1.83.0.
* Fixed a deadlock when multiple threads concurrently derived keys with
Argon2id (and the other Argon2 variants) using lanes greater than 1.
* Deprecated DSA. Everything DSA is deprecated, including the types in
cryptography.hazmat.primitives.asymmetric.dsa and loading DSA keys with the
key loading APIs (including from X.509 certificates and certificate signing
requests). Users should migrate to a more modern signature algorithm.
* The *_into methods (e.g. encrypt_into, update_into, and derive_into) now
raise ValueError if the input and output buffers overlap. Previously,
overlapping buffers could silently produce incorrect output.
* Parsing a subjectAltName or issuerAltName extension now rejects an empty
GeneralNames sequence, matching the SIZE (1..MAX) constraint RFC 5280
4.2.1.6/4.2.1.7 places on the field and the strictness already applied to
extendedKeyUsage.
* ExtendedKeyUsage, SubjectAlternativeName and IssuerAlternativeName now
raise ValueError when constructed with an empty list.
* CertificatePolicies now raises ValueError when constructed with an empty
policies list, matching the SIZE (1..MAX) constraint RFC 5280 4.2.1.4
places on the field and the check ExtendedKeyUsage already performs.
* EllipticCurvePrivateNumbers.private_key() now raises ValueError when
private_value is not smaller than the curve’s order, matching
derive_private_key() and the private key loading functions.
* load_pem_private_key() now raises ValueError for an encrypted traditional
PEM whose DEK-Info IV does not match the cipher’s IV length.
* Added MLDSA44Ed25519PrivateKey and MLDSA44Ed25519PublicKey, composite
ML-DSA-44 and Ed25519 keys for OpenSSH ssh-mldsa44-ed25519 keys. These keys
can be loaded with load_ssh_private_key() and load_ssh_public_key(), and
serialized in the OpenSSH formats.
* from_rfc4514_string() now recognizes attribute names such as cn
regardless of case, including names supplied in attr_name_overrides.
* Parsing X.509 Name structures now rejects NumericString values that
contain characters other than digits and spaces.
* build_server_verifier() now raises ValueError when given a DNSName that
is an IP address. Previously, the address was matched against the DNS names
in the subjectAltName extension, so a wildcard such as *.0.2.1 matched
192.0.2.1 and IP name constraints did not apply. IP addresses must be
passed as an IPAddress.
* The AEAD decrypt_into methods, and update_into on the Cobblestone
(streaming symmetric encryption) decryption classes now zero the output
buffer when authentication fails.
* Added CustomExtensionType which can be used to parse and generate X.509
extensions using cryptography.hazmat.asn1.
* When a server certificate doesn’t match the expected name,
VerificationError now says which name was expected.

-Paul Kehrer (reaperhulk)
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads