pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/py-cryptodome



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Nov 22 19:22:20 UTC 2026

Modified Files:
        pkgsrc/security/py-cryptodome: Makefile PLIST PLIST.i386 PLIST.x86_64
            distinfo

Log Message:
py-cryptodome: update to 4.6.0.

Guess PLIST* where some new .so files belong, please fix them if I
guessed incorrectly.

New features

    New module Crypto.PublicKey.SLHDSA, for SLH-DSA keys (FIPS
    205), with all twelve parameter sets (SHA2 and SHAKE, categories
    1, 3 and 5, small or fast). The algorithms of FIPS 205 are in
    Python; the functions that compute most of the hashes (WOTS+
    chains, XMSS and FORS tree nodes) are in C, on top of the SHA-2
    and Keccak code of PyCryptodome. The C functions compute several
    hashes at once where the CPU allows it: 4 SHA-256 hashes with
    the Intel SHA extensions (interleaved) or the ARMv8 SHA-256
    instructions, 8 SHA-256 hashes with AVX2 (when there are no
    SHA extensions), and 4 SHAKE256 hashes with AVX2 and BMI2 (4-way
    Keccak). The WOTS+ chains of a key pair are computed in one
    call to C.

    SLH-DSA keys can be exported and imported as defined in RFC
    9909 (pure SLH-DSA): public keys as X.509 SubjectPublicKeyInfo
    (also from certificates), private keys as PKCS#8 OneAsymmetricKey
    (also encrypted), in DER or PEM.

    New module Crypto.Signature.slhdsa, for SLH-DSA and HashSLH-DSA
    signatures (FIPS 205), hedged (default) or deterministic, with
    an optional context.

    SLH-DSA signing, key generation and construct() (which checks
    the private key) accept a parameter threads, to compute the
    XMSS and FORS trees on several threads. With 8 threads, signing
    with the s parameter sets is 3.5x to 5x faster.

    Crypto.PublicKey.SLHDSA also supports the six parameter sets
    of the initial public draft of NIST SP 800-230 (April 2026),
    such as SLH_DSA_SHA2_128_24: smaller signatures and faster
    verification, but each key must sign at most 2^24 messages,
    and key generation and signing take minutes (use threads). The
    draft may still change: their support is experimental, and they
    must not be used in production.

    New self-test option --include-very-slow-tests, for the tests
    marked very_slow (like key generation and signing with the SP
    800-230 parameter sets, which take about half an hour): they
    do not run otherwise.

    New module Crypto.Cipher.AEGIS, for the authenticated ciphers
    AEGIS-128L and AEGIS-256 (RFC 10032), with 16- or 32-byte tags.
    They use the AES instructions of the CPU (AES-NI or the ARMv8
    Cryptography Extensions): AEGIS-128L is then 3 to 5 times faster
    than AES-GCM. Without them, the AES round is bitsliced (constant
    time), with NEON on ARM and SSE2 on x86; on 64-bit ARM, AEGIS-128L
    is then still faster than ChaCha20-Poly1305.

Breaking changes

    In Crypto.Signature.mldsa.new(), the context can only be passed
    as a keyword argument (context=), as for Crypto.Signature.slhdsa.new().

Resolved issues

    Security, GH#968: ECC.construct(), and so ECC.import_key(),
    accepted the point at infinity as a public key on the NIST P
    curves and secp256k1 (for instance, 04 followed by zero bytes
    in a SubjectPublicKeyInfo). ECDSA signatures for such a key
    can be forged without any secret. It is now rejected with
    ValueError. Thanks to Zulfareen Shaikh.

    Security, GH#969: DSA.construct(), and so DSA.import_key(),
    accepted public keys equal to 1 or outside the subgroup of
    order q (for instance, p - 1). For y = 1, a signature can be
    forged on any message without any secret. They are now rejected
    with ValueError (NIST SP 800-89, 5.3.1). Thanks to Zulfareen
    Shaikh.

    GH#966: in the decrypt_and_verify() method of GCM, CCM, EAX
    and SIV, the output buffer is filled with zeroes if the MAC
    tag is not valid, so that no unauthenticated plaintext is left
    in it (as GCM-SIV already did). Thanks to Zulfareen Shaikh.

    Security: decoding a DER INTEGER took time quadratic in its
    length, so a crafted key of a few hundred KB (for instance,
    for RSA.import_key) kept the CPU busy for minutes. It now takes
    linear time. Decoding an OBJECT IDENTIFIER had the same problem:
    its subidentifiers are now limited to 128 bytes. Thanks to
    netherportal3.

    GH#965: DSA key import now rejects non-integer domain parameters
    with ValueError. Thanks to Mrmaxmeier.

    GH#963: Fixed the build on the x32 ABI (ILP32 on x86-64). Thanks
    to Kenny Cheng.

    GH#864: The type hints of the scalar multiplication of EC points
    accept Integer objects. Thanks to danrr and hakarrr.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 pkgsrc/security/py-cryptodome/Makefile
cvs rdiff -u -r1.39 -r1.40 pkgsrc/security/py-cryptodome/PLIST
cvs rdiff -u -r1.5 -r1.6 pkgsrc/security/py-cryptodome/PLIST.i386 \
    pkgsrc/security/py-cryptodome/PLIST.x86_64
cvs rdiff -u -r1.53 -r1.54 pkgsrc/security/py-cryptodome/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/py-cryptodome/Makefile
diff -u pkgsrc/security/py-cryptodome/Makefile:1.67 pkgsrc/security/py-cryptodome/Makefile:1.68
--- pkgsrc/security/py-cryptodome/Makefile:1.67 Sun Nov 22 19:14:34 2026
+++ pkgsrc/security/py-cryptodome/Makefile      Sun Nov 22 19:22:20 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.67 2026/11/22 19:14:34 wiz Exp $
+# $NetBSD: Makefile,v 1.68 2026/11/22 19:22:20 wiz Exp $
 
-DISTNAME=      pycryptodome-4.5.0
+DISTNAME=      pycryptodome-4.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//}
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pycryptodome/}

Index: pkgsrc/security/py-cryptodome/PLIST
diff -u pkgsrc/security/py-cryptodome/PLIST:1.39 pkgsrc/security/py-cryptodome/PLIST:1.40
--- pkgsrc/security/py-cryptodome/PLIST:1.39    Sun Nov 22 19:14:34 2026
+++ pkgsrc/security/py-cryptodome/PLIST Sun Nov 22 19:22:20 2026
@@ -1,11 +1,7 @@
-@comment $NetBSD: PLIST,v 1.39 2026/11/22 19:14:34 wiz Exp $
-${PYSITELIB}/${WHEEL_INFODIR}/METADATA
-${PYSITELIB}/${WHEEL_INFODIR}/RECORD
-${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.rst
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/src/mldsa-native/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/licenses/src/mlkem-native/LICENSE
-${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+@comment $NetBSD: PLIST,v 1.40 2026/11/22 19:22:20 wiz Exp $
+${PYSITELIB}/Crypto/Cipher/AEGIS.py
+${PYSITELIB}/Crypto/Cipher/AEGIS.pyc
+${PYSITELIB}/Crypto/Cipher/AEGIS.pyo
 ${PYSITELIB}/Crypto/Cipher/AES.py
 ${PYSITELIB}/Crypto/Cipher/AES.pyc
 ${PYSITELIB}/Crypto/Cipher/AES.pyo
@@ -100,6 +96,7 @@ ${PYSITELIB}/Crypto/Cipher/_pkcs1_decode
 ${PYSITELIB}/Crypto/Cipher/_pkcs1_oaep_decode.py
 ${PYSITELIB}/Crypto/Cipher/_pkcs1_oaep_decode.pyc
 ${PYSITELIB}/Crypto/Cipher/_pkcs1_oaep_decode.pyo
+${PYSITELIB}/Crypto/Cipher/_raw_aegis.so
 ${PYSITELIB}/Crypto/Cipher/_raw_aes.so
 ${PYSITELIB}/Crypto/Cipher/_raw_arc2.so
 ${PYSITELIB}/Crypto/Cipher/_raw_blowfish.so
@@ -302,6 +299,9 @@ ${PYSITELIB}/Crypto/PublicKey/MLKEM.pyo
 ${PYSITELIB}/Crypto/PublicKey/RSA.py
 ${PYSITELIB}/Crypto/PublicKey/RSA.pyc
 ${PYSITELIB}/Crypto/PublicKey/RSA.pyo
+${PYSITELIB}/Crypto/PublicKey/SLHDSA.py
+${PYSITELIB}/Crypto/PublicKey/SLHDSA.pyc
+${PYSITELIB}/Crypto/PublicKey/SLHDSA.pyo
 ${PYSITELIB}/Crypto/PublicKey/__init__.py
 ${PYSITELIB}/Crypto/PublicKey/__init__.pyc
 ${PYSITELIB}/Crypto/PublicKey/__init__.pyo
@@ -317,6 +317,9 @@ ${PYSITELIB}/Crypto/PublicKey/_ed25519.s
 ${PYSITELIB}/Crypto/PublicKey/_edwards.py
 ${PYSITELIB}/Crypto/PublicKey/_edwards.pyc
 ${PYSITELIB}/Crypto/PublicKey/_edwards.pyo
+${PYSITELIB}/Crypto/PublicKey/_fips205.py
+${PYSITELIB}/Crypto/PublicKey/_fips205.pyc
+${PYSITELIB}/Crypto/PublicKey/_fips205.pyo
 ${PYSITELIB}/Crypto/PublicKey/_mldsa.so
 ${PYSITELIB}/Crypto/PublicKey/_mlkem.so
 ${PYSITELIB}/Crypto/PublicKey/_montgomery.py
@@ -331,6 +334,8 @@ ${PYSITELIB}/Crypto/PublicKey/_openssh.p
 ${PYSITELIB}/Crypto/PublicKey/_point.py
 ${PYSITELIB}/Crypto/PublicKey/_point.pyc
 ${PYSITELIB}/Crypto/PublicKey/_point.pyo
+${PYSITELIB}/Crypto/PublicKey/_slhdsa.so
+${PYSITELIB}/Crypto/PublicKey/_slhdsa_shani.so
 ${PYSITELIB}/Crypto/Random/__init__.py
 ${PYSITELIB}/Crypto/Random/__init__.pyc
 ${PYSITELIB}/Crypto/Random/__init__.pyo
@@ -343,6 +348,9 @@ ${PYSITELIB}/Crypto/SelfTest/Cipher/__in
 ${PYSITELIB}/Crypto/SelfTest/Cipher/common.py
 ${PYSITELIB}/Crypto/SelfTest/Cipher/common.pyc
 ${PYSITELIB}/Crypto/SelfTest/Cipher/common.pyo
+${PYSITELIB}/Crypto/SelfTest/Cipher/test_AEGIS.py
+${PYSITELIB}/Crypto/SelfTest/Cipher/test_AEGIS.pyc
+${PYSITELIB}/Crypto/SelfTest/Cipher/test_AEGIS.pyo
 ${PYSITELIB}/Crypto/SelfTest/Cipher/test_AES.py
 ${PYSITELIB}/Crypto/SelfTest/Cipher/test_AES.pyc
 ${PYSITELIB}/Crypto/SelfTest/Cipher/test_AES.pyo
@@ -589,6 +597,9 @@ ${PYSITELIB}/Crypto/SelfTest/PublicKey/t
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_RSA.py
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_RSA.pyc
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_RSA.pyo
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_SLHDSA.py
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_SLHDSA.pyc
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_SLHDSA.pyo
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_Curve25519.py
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_Curve25519.pyc
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_Curve25519.pyo
@@ -610,6 +621,9 @@ ${PYSITELIB}/Crypto/SelfTest/PublicKey/t
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_RSA.py
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_RSA.pyc
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_RSA.pyo
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_SLHDSA.py
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_SLHDSA.pyc
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_SLHDSA.pyo
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_passphrase.py
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_passphrase.pyc
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_import_passphrase.pyo
@@ -637,6 +651,9 @@ ${PYSITELIB}/Crypto/SelfTest/Signature/t
 ${PYSITELIB}/Crypto/SelfTest/Signature/test_pss.py
 ${PYSITELIB}/Crypto/SelfTest/Signature/test_pss.pyc
 ${PYSITELIB}/Crypto/SelfTest/Signature/test_pss.pyo
+${PYSITELIB}/Crypto/SelfTest/Signature/test_slhdsa.py
+${PYSITELIB}/Crypto/SelfTest/Signature/test_slhdsa.pyc
+${PYSITELIB}/Crypto/SelfTest/Signature/test_slhdsa.pyo
 ${PYSITELIB}/Crypto/SelfTest/Util/__init__.py
 ${PYSITELIB}/Crypto/SelfTest/Util/__init__.pyc
 ${PYSITELIB}/Crypto/SelfTest/Util/__init__.pyo
@@ -706,6 +723,9 @@ ${PYSITELIB}/Crypto/Signature/pkcs1_15.p
 ${PYSITELIB}/Crypto/Signature/pss.py
 ${PYSITELIB}/Crypto/Signature/pss.pyc
 ${PYSITELIB}/Crypto/Signature/pss.pyo
+${PYSITELIB}/Crypto/Signature/slhdsa.py
+${PYSITELIB}/Crypto/Signature/slhdsa.pyc
+${PYSITELIB}/Crypto/Signature/slhdsa.pyo
 ${PYSITELIB}/Crypto/Util/Counter.py
 ${PYSITELIB}/Crypto/Util/Counter.pyc
 ${PYSITELIB}/Crypto/Util/Counter.pyo
@@ -736,6 +756,9 @@ ${PYSITELIB}/Crypto/Util/_strxor.so
 ${PYSITELIB}/Crypto/Util/_threads.py
 ${PYSITELIB}/Crypto/Util/_threads.pyc
 ${PYSITELIB}/Crypto/Util/_threads.pyo
+${PYSITELIB}/Crypto/Util/_typing.py
+${PYSITELIB}/Crypto/Util/_typing.pyc
+${PYSITELIB}/Crypto/Util/_typing.pyo
 ${PYSITELIB}/Crypto/Util/asn1.py
 ${PYSITELIB}/Crypto/Util/asn1.pyc
 ${PYSITELIB}/Crypto/Util/asn1.pyo
@@ -749,3 +772,10 @@ ${PYSITELIB}/Crypto/__init__.py
 ${PYSITELIB}/Crypto/__init__.pyc
 ${PYSITELIB}/Crypto/__init__.pyo
 ${PYSITELIB}/Crypto/py.typed
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE.rst
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/src/mldsa-native/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/src/mlkem-native/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt

Index: pkgsrc/security/py-cryptodome/PLIST.i386
diff -u pkgsrc/security/py-cryptodome/PLIST.i386:1.5 pkgsrc/security/py-cryptodome/PLIST.i386:1.6
--- pkgsrc/security/py-cryptodome/PLIST.i386:1.5        Sat Oct 31 06:35:39 2026
+++ pkgsrc/security/py-cryptodome/PLIST.i386    Sun Nov 22 19:22:20 2026
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST.i386,v 1.5 2026/10/31 06:35:39 adam Exp $
+@comment $NetBSD: PLIST.i386,v 1.6 2026/11/22 19:22:20 wiz Exp $
+${PYSITELIB}/Crypto/Cipher/_raw_aegis_aesni.so
 ${PYSITELIB}/Crypto/Cipher/_raw_aesni.so
 ${PYSITELIB}/Crypto/Hash/_SHA224_shani.so
 ${PYSITELIB}/Crypto/Hash/_SHA256_shani.so
Index: pkgsrc/security/py-cryptodome/PLIST.x86_64
diff -u pkgsrc/security/py-cryptodome/PLIST.x86_64:1.5 pkgsrc/security/py-cryptodome/PLIST.x86_64:1.6
--- pkgsrc/security/py-cryptodome/PLIST.x86_64:1.5      Fri Oct 30 18:49:36 2026
+++ pkgsrc/security/py-cryptodome/PLIST.x86_64  Sun Nov 22 19:22:20 2026
@@ -1,6 +1,7 @@
-@comment $NetBSD: PLIST.x86_64,v 1.5 2026/10/30 18:49:36 adam Exp $
+@comment $NetBSD: PLIST.x86_64,v 1.6 2026/11/22 19:22:20 wiz Exp $
 ${PYSITELIB}/Crypto/Cipher/_Salsa20_avx2_bmi2.so
 ${PYSITELIB}/Crypto/Cipher/_chacha20_avx2_bmi2.so
+${PYSITELIB}/Crypto/Cipher/_raw_aegis_aesni.so
 ${PYSITELIB}/Crypto/Cipher/_raw_aesni.so
 ${PYSITELIB}/Crypto/Hash/_SHA224_shani.so
 ${PYSITELIB}/Crypto/Hash/_SHA256_shani.so
@@ -11,3 +12,4 @@ ${PYSITELIB}/Crypto/Math/_nat_bmi2_adx.s
 ${PYSITELIB}/Crypto/PublicKey/_ec_nat_bmi2_adx.so
 ${PYSITELIB}/Crypto/PublicKey/_mldsa_avx2_bmi2.so
 ${PYSITELIB}/Crypto/PublicKey/_mlkem_avx2_bmi2.so
+${PYSITELIB}/Crypto/PublicKey/_slhdsa_avx2_bmi2.so

Index: pkgsrc/security/py-cryptodome/distinfo
diff -u pkgsrc/security/py-cryptodome/distinfo:1.53 pkgsrc/security/py-cryptodome/distinfo:1.54
--- pkgsrc/security/py-cryptodome/distinfo:1.53 Sun Nov 22 19:14:34 2026
+++ pkgsrc/security/py-cryptodome/distinfo      Sun Nov 22 19:22:20 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.53 2026/11/22 19:14:34 wiz Exp $
+$NetBSD: distinfo,v 1.54 2026/11/22 19:22:20 wiz Exp $
 
-BLAKE2s (pycryptodome-4.5.0.tar.gz) = 05baa5580281e46c3235cdd0fd10e61db483948e5012f6db3c7d859bfe792a45
-SHA512 (pycryptodome-4.5.0.tar.gz) = 771da016246746c32008a4fc9f5185fd1f830781ad03c5cd33374957b20d24d9d0c507a002c2cd65e89d53a02f8ee6ac34bdc83b87ebbbf626329888525cfc74
-Size (pycryptodome-4.5.0.tar.gz) = 1863771 bytes
+BLAKE2s (pycryptodome-4.6.0.tar.gz) = 822ed6cf762706c6aa9ed4e73f4dd3acacb3340d8599ece8d13e3d0d4b42fd8c
+SHA512 (pycryptodome-4.6.0.tar.gz) = eef301d4ee2757dbbd7d2dc52b2e62ab4dd4940e7a3552e67212e18e44bd6f804fb21db5320fdfd67eb42b65265839ef008504d991301ec24f567c2532413a65
+Size (pycryptodome-4.6.0.tar.gz) = 1976136 bytes



Home | Main Index | Thread Index | Old Index