🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.python.announce
Article #16

[Python-announce] PyCA cryptography 51.0.0 released

#16
From: 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)
Technical Details
Message-ID: <CABj5TKSiWdQOdbH7jWyBJnhxkkj=nxX8k9gm=DkkUGUeMjp5xw@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: Paul Kehrer <paul.l.kehrer@gmail.com>
Newsgroups: comp.lang.python.announce
Subject: [Python-announce] PyCA cryptography 51.0.0 released
Date: Tue, 1 Dec 2026 18:27:10 -0600
Lines: 75
Approved: python-announce-list@python.org
Message-ID: <CABj5TKSiWdQOdbH7jWyBJnhxkkj=nxX8k9gm=DkkUGUeMjp5xw@mail.gmail.com>
Reply-To: python-list@python.org
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64
X-Trace: news.uni-berlin.de 4Y2NezXiYHgkNHSm/VrRXwpYdp4oomQBHfaO3w3g4xBQ==
Cancel-Lock: sha1:M1a8IV5omy0vHsHGqG7N3atD4P4= sha256:+PhHefO3mvbJIxFx3tw3kkwkY6W8KE8flNhxxRaQvu0=
Delivered-To: python-announce-list@x.python.org
Authentication-Results: mail.python.org; dkim=pass
	reason="2048-bit key; unprotected key"
	header.d=gmail.com header.i=@gmail.com header.b=HZ09OCJp;
	dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.001
X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(e.g.': 0.05;
    'containing': 0.05; 'windows,': 0.05; 'certificates': 0.07;
    'matching': 0.07; 'derived': 0.09; 'dns': 0.09; 'interfaces':
    0.09; 'linux': 0.09; 'macos,': 0.09; 'methods,': 0.09; 'order,':
    0.09; 'parse': 0.09; 'rfc': 0.09; 'smaller': 0.09; 'supplied':
    0.09; 'threads': 0.09; 'to:addr:python-announce-list': 0.09;
    'supported': 0.15; 'algorithms': 0.16; 'algorithms,': 0.16;
    'apis': 0.16; 'attributes': 0.16; 'compiled': 0.16; 'constructed':
    0.16; 'cryptography': 0.16; 'deprecated,': 0.16; 'digests,': 0.16;
    'encrypted': 0.16; 'expected.': 0.16; 'explicit': 0.16;
    'extensions': 0.16; 'functions,': 0.16; 'functions.': 0.16;
    'length.': 0.16; 'matched': 0.16; 'overlapping': 0.16; 'parsing':
    0.16; 'pypi.': 0.16; 'structures': 0.16; 'symmetric': 0.16;
    'url:latest': 0.16; 'python': 0.16; 'says': 0.17; 'values': 0.17;
    'addresses': 0.19; 'issue': 0.21; 'input': 0.21; 'to:no real
    name:2**1': 0.22; 'version': 0.23; 'installed': 0.23; 'skip:p 30':
    0.23; 'list,': 0.24; '(and': 0.25; 'extension': 0.25;
    'certificate': 0.26; 'classes': 0.26; 'signing': 0.26; 'output':
    0.28; '8bit%:19': 0.31; 'raise': 0.31; 'message-
    id:@mail.gmail.com': 0.31; 'empty': 0.32; 'specified': 0.32;
    'zero': 0.32; 'server': 0.33; 'received:google.com': 0.34;
    'from:addr:gmail.com': 0.35; 'sfxlen:2': 0.37; 'using': 0.37;
    'could': 0.37; '8bit%:14': 0.38; 'both': 0.38; 'added': 0.39;
    'methods': 0.39; 'still': 0.40; 'match': 0.40; 'should': 0.40;
    'including': 0.60; 'url-ip:104.16/16': 0.61; 'skip:o 10': 0.61;
    'skip:i 20': 0.62; 'skip:b 20': 0.63; 'skip:m 20': 0.63;
    'everything': 0.63; 'skip:b 10': 0.63; 'key': 0.64; 'url:4': 0.64;
    'url:6': 0.64; 'produce': 0.65; 'earlier': 0.67; 'types': 0.67;
    'accept': 0.67; 'apply.': 0.69; 'longer': 0.71; 'private': 0.71;
    'url-ip:lookup error': 0.72; 'low': 0.74; 'name,': 0.75;
    'released': 0.75; 'skip:4 10': 0.75; 'skip:f 20': 0.75;
    'signature': 0.76; 'field': 0.78; 'more.': 0.82; 'publish': 0.84;
    'attribute': 0.84; 'characters': 0.84; 'constraints': 0.84;
    'incorrect': 0.84; 'retains': 0.84; 'wheels': 0.84; 'greater':
    0.91; 'migrate': 0.93
ARC-Seal: i=1; a=rsa-sha256; t=1796171241; cv=none;
        d=google.com; s=arc-20260327;
        b=OZqudJXCrsw51ZlXYcTWaUgitNck9FjZ/9DBevbRGE6As56rUg/l6qNiT9ITc0EtGS
         p2LJnu3FRUsxbpKus6gi0DxHZdxGv8zEu8cqBGFDWfiF9VZO0Vmv9Tx56ud48LuMn+Dh
         2Klt5SSMExre4B1oTKncLdtD6+qoilLoU4hKZu9FSZGT+ZWUp5y2SvGGhQgdJhxNmSr6
         J7/OaKEMUHdVyA2U3AeH0czmCts5gpQS9iDD0ONmGuRGwJpiwEYqfLPlGRm+GNSvT/Lu
         PV26KVX2ao2LfyF8Avv2Kg4kmwL7OrGnHyA5EKUCPpzE11BdAxn4oRG7i4iy+k8KR4s/
         ZkNA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327;
        h=to:subject:message-id:date:from:mime-version:dkim-signature;
        bh=S3aGRUbXw1SryVZEAkoClwxX+QYob6JWIjUTZT5FyOQ=;
        fh=UEr5z0qRMRkQt78hUCxqXGpK8bLcqDB4RXxaXvZnihs=;
        b=FSxJRKkkHwjHDpExFnLr04WNZm0afIThLx1ZWbdqmEEzGOtcV1EByagmQ01mGQGtDu
         Nrnm831MMKztmELnA917WN6QsAGcUQyIFWRYzDB1n1s2yIMxx7osQYVHFSamoPulcJCA
         JEFFsqUj326gWE3uZHpbqmsouSacJzqwuKzWH5BopSbyfwy/CiVEqyuI2OtRs9/dNepj
         ChVVf9MfItepCPlM8yrcwU9DlXISubgZVC7rESujoTf6915t4JibwDATr1W5U+nZbtyj
         QKgEilKRHKlb0reoaBx1p5nnZ7yIW6ZZ83JtlX/eGEipi1h3CdSmh2FlGxbKhQGWe32l
         0nBA==;
        darn=python.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1796171241; x=1796776041; darn=python.org;
        h=content-type:to:subject:message-id:date:from:mime-version:from:to
         :cc:subject:date:message-id:reply-to:content-type;
        bh=S3aGRUbXw1SryVZEAkoClwxX+QYob6JWIjUTZT5FyOQ=;
        b=HZ09OCJp3hFLvBOaMxu0ovqUbJ4c0dMpecKKskHkaOKaX5LLrt51ZpCi28SDNDFqJc
         ah1JTzF3CE3kJkIJntbQuc7pZO51pnGcIc6Lmq7NoMfWmaIjdPrFKqKDXnS2Ora3xPWt
         eLohWpstIz+TOVqNd0yf5kbFQsM66870FxXiYyBypK4gACUiwJ0UnC3iAzqH4bY8yvtO
         qru/C7lEbaYyzo40TnRxDsn/Io+JtodcX3MPqWHWo2F4oj+rwQWzb9g9zQOPmMCw2Dpk
         /b6HnpTA0V2mBl5ylPzz2n9r4bHD3YLXODNav1MqEo96ZOg4YfBwYgQXRqd1WL/0NxWO
         dWDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796171241; x=1796776041;
        h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=S3aGRUbXw1SryVZEAkoClwxX+QYob6JWIjUTZT5FyOQ=;
        b=pH+4ix4iDa5XpMvy/87yBZKtONO+SAL/a4PkFzVyHGTctjXsUWaL1XVHfmfuAwfZjZ
         HXwNjCBz0GyMPeKD1ZusHcJmXWdDkN2isTHgf47+UbDu+xW98m6Vrz8JT63ah6TPCoX3
         G5CW8I++AabULIinCkSnIgHdBNIASVRM3CeaVo7Vg9GMLA8J0Y6jcIYhRtkM6q5QqEh8
         fBdCY3oP8Rstnm4twnEWursaY59Busr0TB7ppuxRPPw71YFuB+IW6IZR/ef2msUVEKE3
         OvXfhnqDYZT+0sBbmASjD89W3S2ndDqKfZK0cE6tGVflx3DpJzAhwewDPLaZhBWoVbx1
         FihA==
X-Forwarded-Encrypted: i=1; AL+hErEugNZ/hjKxLqcsBmN1v1hgJQ67cMbJSQ4lEqoXezPqqBGETan1L3Ufp2AKVuuX6MVW0Kd1fO7E55GOJ6H6WkU5rIuT9A==@python.org
X-Gm-Message-State: APuU4Z+z+ff8RWNFCkM1P3M1fykeSgTsChAkKdhs0V2XOTGtjfdaDgKZ
	7uZyj4INAFHfOR3ivLBvF+QhQM7Bw/68D0abfjfAMPuBjNyvzXFdEIFEBfJ15rb7lX2Xz84paNn
	1L4ctZtsj8tpObD8f0EpD0NVu3cdmbYg=
X-Gm-Gg: AZFdTZe6wUD5BZwxQOrITB+onxXmbTcL1U9M45bd//ZagVAxF7mXULKJ+u9ogJAIj3M
	Fa3JzGniY0a0NzXxepfpfBpJE3AdfD3Rut/SUwxv96us/tWiAWmtKNmW8yD4H/AMI45mymnbp6G
	U/n9F847fuI+QVPiUA7NmoCt4OH2FFYLThFS4iyAmKo/iVS5FzTxx2oo7HqxKtGDm3Hxz3SheO9
	i+M5G4SV/G5HDgsskhcJaLLrGNGNcIeYWGR8o+Z5VDOQoroMNVMGEmatHosKUoxUMkG3b21UJIW
	A4dW10FAXIkPGRyzNs7ZUch3s5/Z1B+Z67CabDUN8qTOHrBk7BFky6LzizYxBXCUjbmrj+i8oYW
	QlaNPWWDNhdu9U8lPckYQjxUnQTemoeFI8XM+8PlWMhdd+2KoNweVmlfteDBPYw3zUe1p
X-Received: by 2002:a05:6871:e809:b0:4a2:c175:d339 with SMTP id
 586e51a60fabf-4bc821950bcmr36603695fac.39.1796171241534; Tue, 01 Dec 2026
 16:27:21 -0800 (PST)
X-Gm-Features: Aa3M54olPYrFRw865YddXGihd7nqrLpN5u_Fc9udij9PWxsNSWJSakceD-uAh7o
X-MailFrom: paul.l.kehrer@gmail.com
X-Mailman-Rule-Hits: emergency
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-python-announce-list.python.org-0; header-match-python-announce-list.python.org-1; header-match-python-announce-list.python.org-2; header-match-python-announce-list.python.org-3; header-match-python-announce-list.python.org-4
Message-ID-Hash: SB5UN3KWQN3UDBKKMGMQK4DV4EOIUWCD
X-Message-ID-Hash: SB5UN3KWQN3UDBKKMGMQK4DV4EOIUWCD
X-Mailman-Approved-At: Tue, 01 Dec 2026 19:31:14 -0500
X-Content-Filtered-By: Mailman/MimeDel 3.3.11b1
X-Mailman-Version: 3.3.11b1
Precedence: list
List-Id: Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At: <https://mail.python.org/archives/list/python-announce-list@python.org/message/SB5UN3KWQN3UDBKKMGMQK4DV4EOIUWCD/>
List-Archive: <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help: <mailto:python-announce-list-request@python.org?subject=help>
List-Owner: <mailto:python-announce-list-owner@python.org>
List-Post: <mailto:python-announce-list@python.org>
List-Subscribe: <mailto:python-announce-list-join@python.org>
List-Unsubscribe: <mailto:python-announce-list-leave@python.org>