pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/py-cryptodome py-cryptodome: updated to 3.5.0
details: https://anonhg.NetBSD.org/pkgsrc/rev/0521fa7baa47
branches: trunk
changeset: 376751:0521fa7baa47
user: adam <adam%pkgsrc.org@localhost>
date: Thu Mar 08 08:15:02 2018 +0000
description:
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.
diffstat:
security/py-cryptodome/Makefile | 4 ++--
security/py-cryptodome/PLIST | 7 ++++++-
security/py-cryptodome/distinfo | 11 ++++++-----
security/py-cryptodome/patches/patch-src_multiply.h | 15 +++++++++++++++
4 files changed, 29 insertions(+), 8 deletions(-)
diffs (83 lines):
diff -r 940030172a45 -r 0521fa7baa47 security/py-cryptodome/Makefile
--- a/security/py-cryptodome/Makefile Thu Mar 08 08:13:03 2018 +0000
+++ b/security/py-cryptodome/Makefile Thu Mar 08 08:15:02 2018 +0000
@@ -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/}
diff -r 940030172a45 -r 0521fa7baa47 security/py-cryptodome/PLIST
--- a/security/py-cryptodome/PLIST Thu Mar 08 08:13:03 2018 +0000
+++ b/security/py-cryptodome/PLIST Thu Mar 08 08:15:02 2018 +0000
@@ -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/_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_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/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
diff -r 940030172a45 -r 0521fa7baa47 security/py-cryptodome/distinfo
--- a/security/py-cryptodome/distinfo Thu Mar 08 08:13:03 2018 +0000
+++ b/security/py-cryptodome/distinfo Thu Mar 08 08:15:02 2018 +0000
@@ -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
diff -r 940030172a45 -r 0521fa7baa47 security/py-cryptodome/patches/patch-src_multiply.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/py-cryptodome/patches/patch-src_multiply.h Thu Mar 08 08:15:02 2018 +0000
@@ -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