Wed Sep 29 09:38:06 2021 UTC ()
py-cryptodome: updated to 3.10.4

3.10.4 (25 September 2021)

Resolved issues

Output of Crypto.Util.number.long_to_bytes() was not always a multiple of blocksize.

3.10.3 (22 September 2021)

Resolved issues

Fixed symbol conflict between different versions of libgmp.
Improved robustness of PKCS#1v1.5 decryption against timing attacks.
Fixed segmentation faults on Apple M1 and other Aarch64 SoCs, when the GMP library add accessed via ctypes. Do not use GMP's own sscanf and snprintf routines: instead, use simpler conversion routines.
Workaround for cffi calling ctypes.util.find_library(), which invokes gcc and ld on Linux, considerably slowing down all imports. On certain configurations, that may also leave temporary files behind.
Fix RSAES-OAEP, as it didn't always fail when zero padding was incorrect.

New features

Added support for SHA-3 hash functions to HMAC.


(adam)
diff -r1.35 -r1.36 pkgsrc/security/py-cryptodome/Makefile
diff -r1.21 -r1.22 pkgsrc/security/py-cryptodome/PLIST
diff -r1.30 -r1.31 pkgsrc/security/py-cryptodome/distinfo

cvs diff -r1.35 -r1.36 pkgsrc/security/py-cryptodome/Makefile (expand / switch to unified diff)

--- pkgsrc/security/py-cryptodome/Makefile 2021/02/24 01:11:34 1.35
+++ pkgsrc/security/py-cryptodome/Makefile 2021/09/29 09:38:06 1.36
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.35 2021/02/24 01:11:34 gutteridge Exp $ 1# $NetBSD: Makefile,v 1.36 2021/09/29 09:38:06 adam Exp $
2 2
3DISTNAME= pycryptodome-3.10.1 3DISTNAME= pycryptodome-3.10.4
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
5CATEGORIES= security python 5CATEGORIES= security python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycryptodome/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pycryptodome/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.pycryptodome.org/ 9HOMEPAGE= https://www.pycryptodome.org/
10COMMENT= Cryptographic and hash functions for Python 10COMMENT= Cryptographic and hash functions for Python
11LICENSE= public-domain AND python-software-foundation 11LICENSE= public-domain AND python-software-foundation
12 12
13EXTRACT_USING= bsdtar 13EXTRACT_USING= bsdtar
14 14
15# XXX is this needed? 15# XXX is this needed?
16CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600 16CFLAGS.SunOS+= -std=c99 -D_XOPEN_SOURCE=600

cvs diff -r1.21 -r1.22 pkgsrc/security/py-cryptodome/PLIST (expand / switch to unified diff)

--- pkgsrc/security/py-cryptodome/PLIST 2021/02/25 08:13:56 1.21
+++ pkgsrc/security/py-cryptodome/PLIST 2021/09/29 09:38:06 1.22
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.21 2021/02/25 08:13:56 nia Exp $ 1@comment $NetBSD: PLIST,v 1.22 2021/09/29 09:38:06 adam Exp $
2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 2${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 3${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 4${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
6${PYSITELIB}/${EGG_INFODIR}/top_level.txt 6${PYSITELIB}/${EGG_INFODIR}/top_level.txt
7${PYSITELIB}/Crypto/Cipher/AES.py 7${PYSITELIB}/Crypto/Cipher/AES.py
8${PYSITELIB}/Crypto/Cipher/AES.pyc 8${PYSITELIB}/Crypto/Cipher/AES.pyc
9${PYSITELIB}/Crypto/Cipher/AES.pyi 9${PYSITELIB}/Crypto/Cipher/AES.pyi
10${PYSITELIB}/Crypto/Cipher/AES.pyo 10${PYSITELIB}/Crypto/Cipher/AES.pyo
11${PYSITELIB}/Crypto/Cipher/ARC2.py 11${PYSITELIB}/Crypto/Cipher/ARC2.py
12${PYSITELIB}/Crypto/Cipher/ARC2.pyc 12${PYSITELIB}/Crypto/Cipher/ARC2.pyc
13${PYSITELIB}/Crypto/Cipher/ARC2.pyi 13${PYSITELIB}/Crypto/Cipher/ARC2.pyi
14${PYSITELIB}/Crypto/Cipher/ARC2.pyo 14${PYSITELIB}/Crypto/Cipher/ARC2.pyo
@@ -97,26 +97,28 @@ ${PYSITELIB}/Crypto/Cipher/_mode_ocb.pyi @@ -97,26 +97,28 @@ ${PYSITELIB}/Crypto/Cipher/_mode_ocb.pyi
97${PYSITELIB}/Crypto/Cipher/_mode_ocb.pyo 97${PYSITELIB}/Crypto/Cipher/_mode_ocb.pyo
98${PYSITELIB}/Crypto/Cipher/_mode_ofb.py 98${PYSITELIB}/Crypto/Cipher/_mode_ofb.py
99${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyc 99${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyc
100${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyi 100${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyi
101${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyo 101${PYSITELIB}/Crypto/Cipher/_mode_ofb.pyo
102${PYSITELIB}/Crypto/Cipher/_mode_openpgp.py 102${PYSITELIB}/Crypto/Cipher/_mode_openpgp.py
103${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyc 103${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyc
104${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyi 104${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyi
105${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyo 105${PYSITELIB}/Crypto/Cipher/_mode_openpgp.pyo
106${PYSITELIB}/Crypto/Cipher/_mode_siv.py 106${PYSITELIB}/Crypto/Cipher/_mode_siv.py
107${PYSITELIB}/Crypto/Cipher/_mode_siv.pyc 107${PYSITELIB}/Crypto/Cipher/_mode_siv.pyc
108${PYSITELIB}/Crypto/Cipher/_mode_siv.pyi 108${PYSITELIB}/Crypto/Cipher/_mode_siv.pyi
109${PYSITELIB}/Crypto/Cipher/_mode_siv.pyo 109${PYSITELIB}/Crypto/Cipher/_mode_siv.pyo
 110${PLIST.py2x}${PYSITELIB}/Crypto/Cipher/_pkcs1_decode.so
 111${PLIST.py3x}${PYSITELIB}/Crypto/Cipher/_pkcs1_decode.abi3.so
110${PYSITELIB}/Crypto/Cipher/_raw_aes.${SOEXT} 112${PYSITELIB}/Crypto/Cipher/_raw_aes.${SOEXT}
111${PYSITELIB}/Crypto/Cipher/_raw_arc2.${SOEXT} 113${PYSITELIB}/Crypto/Cipher/_raw_arc2.${SOEXT}
112${PYSITELIB}/Crypto/Cipher/_raw_blowfish.${SOEXT} 114${PYSITELIB}/Crypto/Cipher/_raw_blowfish.${SOEXT}
113${PYSITELIB}/Crypto/Cipher/_raw_cast.${SOEXT} 115${PYSITELIB}/Crypto/Cipher/_raw_cast.${SOEXT}
114${PYSITELIB}/Crypto/Cipher/_raw_cbc.${SOEXT} 116${PYSITELIB}/Crypto/Cipher/_raw_cbc.${SOEXT}
115${PYSITELIB}/Crypto/Cipher/_raw_cfb.${SOEXT} 117${PYSITELIB}/Crypto/Cipher/_raw_cfb.${SOEXT}
116${PYSITELIB}/Crypto/Cipher/_raw_ctr.${SOEXT} 118${PYSITELIB}/Crypto/Cipher/_raw_ctr.${SOEXT}
117${PYSITELIB}/Crypto/Cipher/_raw_des.${SOEXT} 119${PYSITELIB}/Crypto/Cipher/_raw_des.${SOEXT}
118${PYSITELIB}/Crypto/Cipher/_raw_des3.${SOEXT} 120${PYSITELIB}/Crypto/Cipher/_raw_des3.${SOEXT}
119${PYSITELIB}/Crypto/Cipher/_raw_ecb.${SOEXT} 121${PYSITELIB}/Crypto/Cipher/_raw_ecb.${SOEXT}
120${PYSITELIB}/Crypto/Cipher/_raw_eksblowfish.${SOEXT} 122${PYSITELIB}/Crypto/Cipher/_raw_eksblowfish.${SOEXT}
121${PYSITELIB}/Crypto/Cipher/_raw_ocb.${SOEXT} 123${PYSITELIB}/Crypto/Cipher/_raw_ocb.${SOEXT}
122${PYSITELIB}/Crypto/Cipher/_raw_ofb.${SOEXT} 124${PYSITELIB}/Crypto/Cipher/_raw_ofb.${SOEXT}

cvs diff -r1.30 -r1.31 pkgsrc/security/py-cryptodome/distinfo (expand / switch to unified diff)

--- pkgsrc/security/py-cryptodome/distinfo 2021/02/17 15:59:20 1.30
+++ pkgsrc/security/py-cryptodome/distinfo 2021/09/29 09:38:06 1.31
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.30 2021/02/17 15:59:20 adam Exp $ 1$NetBSD: distinfo,v 1.31 2021/09/29 09:38:06 adam Exp $
2 2
3SHA1 (pycryptodome-3.10.1.tar.gz) = 3cbf9170d1ebd589836f46842bce30a8c4afc8fa 3SHA1 (pycryptodome-3.10.4.tar.gz) = 267c23fc1915d1c0e39734a83744ae8d8d0b5d57
4RMD160 (pycryptodome-3.10.1.tar.gz) = c10290cefe964891fac78e8fd32e4d3e667bcdd0 4RMD160 (pycryptodome-3.10.4.tar.gz) = 9cdc5bd4e1f4114d6cd680849b989bb31c8c4a06
5SHA512 (pycryptodome-3.10.1.tar.gz) = 92bcde817fd6524fbe48f04e366ff8646e24d576d64dfcb72d8764e4963b26ef478b40c10c4e7f46522e5b931c6bb8478e97f242bd6770776644387566d8a2cb 5SHA512 (pycryptodome-3.10.4.tar.gz) = 1bc6b6c1f40f32e3d8868fdbb90802eb48e8fac6725f42a0b1d020978b7d3819fa1cad96fba636505c26c8e9c6fb8e63edf0ed576b1573c91789be9c7c9a8656
6Size (pycryptodome-3.10.1.tar.gz) = 3762120 bytes 6Size (pycryptodome-3.10.4.tar.gz) = 3797012 bytes