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:   adam
Date:           Thu Mar  8 08:15:02 UTC 2018

Modified Files:
        pkgsrc/security/py-cryptodome: Makefile PLIST distinfo
Added Files:
        pkgsrc/security/py-cryptodome/patches: patch-src_multiply.h

Log Message:
py-cryptodome: updated to 3.5.0

New features
* Import and export of ECC curves in compressed form.
* The initial counter for a cipher in CTR mode can be a byte string (in addition to an integer).
* Faster PBKDF2 for HMAC-based PRFs (at least 20x for short passwords, more for longer passwords). Thanks to Christian Heimes for pointing out the implementation was under-optimized.
* The salt for PBKDF2 can be either a string or bytes.

Resolved issues
* Without libgmp, modular exponentiation (since v3.4.8) crashed on 32-bit big-endian systems.

Breaks in compatibility
* Removed support for Python < 2.6.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 pkgsrc/security/py-cryptodome/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/security/py-cryptodome/PLIST
cvs rdiff -u -r1.6 -r1.7 pkgsrc/security/py-cryptodome/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/security/py-cryptodome/patches/patch-src_multiply.h

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.9 pkgsrc/security/py-cryptodome/Makefile:1.10
--- pkgsrc/security/py-cryptodome/Makefile:1.9  Wed Feb  7 10:44:51 2018
+++ pkgsrc/security/py-cryptodome/Makefile      Thu Mar  8 08:15:02 2018
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.9 2018/02/07 10:44:51 adam Exp $
+# $NetBSD: Makefile,v 1.10 2018/03/08 08:15:02 adam Exp $
 
-DISTNAME=      pycryptodome-3.4.11
+DISTNAME=      pycryptodome-3.5.0
 PKGNAME=       ${DISTNAME:S/^py/${PYPKGPREFIX}-/}
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pycryptodome/}

Index: pkgsrc/security/py-cryptodome/PLIST
diff -u pkgsrc/security/py-cryptodome/PLIST:1.4 pkgsrc/security/py-cryptodome/PLIST:1.5
--- pkgsrc/security/py-cryptodome/PLIST:1.4     Wed Jan 31 07:57:25 2018
+++ pkgsrc/security/py-cryptodome/PLIST Thu Mar  8 08:15:02 2018
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2018/01/31 07:57:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/03/08 08:15:02 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -156,7 +156,9 @@ ${PYSITELIB}/Crypto/Hash/_BLAKE2b.so
 ${PYSITELIB}/Crypto/Hash/_BLAKE2s.so
 ${PYSITELIB}/Crypto/Hash/_MD2.so
 ${PYSITELIB}/Crypto/Hash/_MD4.so
+${PYSITELIB}/Crypto/Hash/_MD5.so
 ${PYSITELIB}/Crypto/Hash/_RIPEMD160.so
+${PYSITELIB}/Crypto/Hash/_SHA1.so
 ${PYSITELIB}/Crypto/Hash/_SHA224.so
 ${PYSITELIB}/Crypto/Hash/_SHA256.so
 ${PYSITELIB}/Crypto/Hash/_SHA384.so
@@ -469,6 +471,7 @@ ${PYSITELIB}/Crypto/SelfTest/Hash/test_v
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/BLAKE2s/blake2s-test.txt
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/BLAKE2s/tv1.txt
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/BLAKE2s/tv2.txt
+${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/SHA1/SHA1ShortMsg.rsp
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/SHA3/ShortMsgKAT_SHA3-224.txt
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/SHA3/ShortMsgKAT_SHA3-256.txt
 ${PYSITELIB}/Crypto/SelfTest/Hash/test_vectors/SHA3/ShortMsgKAT_SHA3-384.txt
@@ -558,6 +561,8 @@ ${PYSITELIB}/Crypto/SelfTest/PublicKey/t
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_private_p8_clear.pem
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_public.der
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_public.pem
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_public_compressed.der
+${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_public_compressed.pem
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_public_openssh.txt
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_x509.der
 ${PYSITELIB}/Crypto/SelfTest/PublicKey/test_vectors/ECC/ecc_p256_x509.pem

Index: pkgsrc/security/py-cryptodome/distinfo
diff -u pkgsrc/security/py-cryptodome/distinfo:1.6 pkgsrc/security/py-cryptodome/distinfo:1.7
--- pkgsrc/security/py-cryptodome/distinfo:1.6  Wed Feb  7 10:44:51 2018
+++ pkgsrc/security/py-cryptodome/distinfo      Thu Mar  8 08:15:02 2018
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2018/02/07 10:44:51 adam Exp $
+$NetBSD: distinfo,v 1.7 2018/03/08 08:15:02 adam Exp $
 
-SHA1 (pycryptodome-3.4.11.tar.gz) = daffceda74d65d57c83a63d1e5d3125b6961d571
-RMD160 (pycryptodome-3.4.11.tar.gz) = d6f2cfd68a8b5374d010d00afb891939dbb33b02
-SHA512 (pycryptodome-3.4.11.tar.gz) = a770122bcd03d4841027425ab8746558f80e525df8d7d8bcce5a513514ad1dba0eecb104bf72d60168a31a7d9d7f159d1facbd14dce743333908ad3c06ddc8c1
-Size (pycryptodome-3.4.11.tar.gz) = 6703564 bytes
+SHA1 (pycryptodome-3.5.0.tar.gz) = aa7b25c50f8f46391fd101c032479bcd6ea00585
+RMD160 (pycryptodome-3.5.0.tar.gz) = 0c0f2cfc95ba46a9764fb0df1d90ac5511513302
+SHA512 (pycryptodome-3.5.0.tar.gz) = a264ec1517fa5e61988cd8950e9f5815859b5783101588b6c4383c35d5000e19723fe20be75060c65fb935051474a05c1fdf07de29e0724b6ef98937bdb17534
+Size (pycryptodome-3.5.0.tar.gz) = 6720425 bytes
+SHA1 (patch-src_multiply.h) = 06437572636027cabe6d5c8d8095841da279209b

Added files:

Index: pkgsrc/security/py-cryptodome/patches/patch-src_multiply.h
diff -u /dev/null pkgsrc/security/py-cryptodome/patches/patch-src_multiply.h:1.1
--- /dev/null   Thu Mar  8 08:15:02 2018
+++ pkgsrc/security/py-cryptodome/patches/patch-src_multiply.h  Thu Mar  8 08:15:02 2018
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_multiply.h,v 1.1 2018/03/08 08:15:02 adam Exp $
+
+Avoid conflicting types.
+
+--- src/multiply.h.orig        2018-03-08 07:51:51.000000000 +0000
++++ src/multiply.h
+@@ -59,7 +59,7 @@ __attribute__((optimize("-O3")))
+ #endif
+ ;
+ 
+-size_t addmul128(uint64_t * RESTRICT t, const uint64_t * RESTRICT a, uint64_t b0, uint64_t b1, size_t words)
++uint64_t addmul128(uint64_t * RESTRICT t, const uint64_t * RESTRICT a, uint64_t b0, uint64_t b1, size_t words)
+ #if defined(__GNUC__) && !defined(__clang__)
+ __attribute__((optimize("-O3")))
+ #endif



Home | Main Index | Thread Index | Old Index