pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-cryptography Update to 0.8:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/92360ecb153d
branches:  trunk
changeset: 648626:92360ecb153d
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Mar 15 21:10:16 2015 +0000

description:
Update to 0.8:

0.8 - 2015-03-08
~~~~~~~~~~~~~~~~

* :func:`~cryptography.hazmat.primitives.serialization.load_ssh_public_key` can
  now load elliptic curve public keys.
* Added
  :attr:`~cryptography.x509.Certificate.signature_hash_algorithm` support to
  :class:`~cryptography.x509.Certificate`.
* Added
  :func:`~cryptography.hazmat.primitives.asymmetric.rsa.rsa_recover_prime_factors`
* :class:`~cryptography.hazmat.primitives.kdf.KeyDerivationFunction` was moved
  from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.kdf`.
* Added support for parsing X.509 names. See the
  :doc:`X.509 documentation</x509>` for more information.
* Added
  :func:`~cryptography.hazmat.primitives.serialization.load_der_private_key` to
  support loading of DER encoded private keys and
  :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key` to
  support loading DER encoded public keys.
* Fixed building against LibreSSL, a compile-time substitute for OpenSSL.
* FreeBSD 9.2 was removed from the continuous integration system.
* Updated Windows wheels to be compiled against OpenSSL 1.0.2.
* :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key`
  and :func:`~cryptography.hazmat.primitives.serialization.load_der_public_key`
  now support PKCS1 RSA public keys (in addition to the previous support for
  SubjectPublicKeyInfo format for RSA, EC, and DSA).
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization.private_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithSerialization`.
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization.private_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithSerialization`.
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization.private_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithSerialization`.
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization.public_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithSerialization`.
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization.public_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithSerialization`.
* Added
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`
  and deprecated
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithNumbers`.
* Added
  :meth:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization.public_bytes`
  to
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithSerialization`.
* :class:`~cryptography.hazmat.primitives.hashes.HashAlgorithm` and
  :class:`~cryptography.hazmat.primitives.hashes.HashContext` were moved from
  :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.hashes`.
* :class:`~cryptography.hazmat.primitives.ciphers.CipherContext`,
  :class:`~cryptography.hazmat.primitives.ciphers.AEADCipherContext`,
  :class:`~cryptography.hazmat.primitives.ciphers.AEADEncryptionContext`,
  :class:`~cryptography.hazmat.primitives.ciphers.CipherAlgorithm`, and
  :class:`~cryptography.hazmat.primitives.ciphers.BlockCipherAlgorithm`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.ciphers`.
* :class:`~cryptography.hazmat.primitives.ciphers.modes.Mode`,
  :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithInitializationVector`,
  :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithNonce`, and
  :class:`~cryptography.hazmat.primitives.ciphers.modes.ModeWithAuthenticationTag`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.ciphers.modes`.
* :class:`~cryptography.hazmat.primitives.padding.PaddingContext` was moved
  from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.padding`.
*
  :class:`~cryptography.hazmat.primitives.asymmetric.padding.AsymmetricPadding`
  was moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.asymmetric.padding`.
*
  :class:`~cryptography.hazmat.primitives.asymmetric.AsymmetricSignatureContext`
  and
  :class:`~cryptography.hazmat.primitives.asymmetric.AsymmetricVerificationContext`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.asymmetric`.
* :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParameters`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAParametersWithNumbers`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKey`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPrivateKeyWithNumbers`,
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKey` and
  :class:`~cryptography.hazmat.primitives.asymmetric.dsa.DSAPublicKeyWithNumbers`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.asymmetric.dsa`
* :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurve`,
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurveSignatureAlgorithm`,
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKey`,
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePrivateKeyWithNumbers`,
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKey`,
  and
  :class:`~cryptography.hazmat.primitives.asymmetric.ec.EllipticCurvePublicKeyWithNumbers`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.asymmetric.ec`.
* :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKey`,
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateKeyWithNumbers`,
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKey` and
  :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicKeyWithNumbers`
  were moved from :mod:`~cryptography.hazmat.primitives.interfaces` to
  :mod:`~cryptography.hazmat.primitives.asymmetric.rsa`.

diffstat:

 security/py-cryptography/Makefile                                                    |   4 +-
 security/py-cryptography/PLIST                                                       |  13 ++++++---
 security/py-cryptography/distinfo                                                    |  10 +++---
 security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py |   8 +++---
 4 files changed, 20 insertions(+), 15 deletions(-)

diffs (89 lines):

diff -r 00890d2f9c62 -r 92360ecb153d security/py-cryptography/Makefile
--- a/security/py-cryptography/Makefile Sun Mar 15 21:10:07 2015 +0000
+++ b/security/py-cryptography/Makefile Sun Mar 15 21:10:16 2015 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2015/01/18 17:25:39 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2015/03/15 21:10:16 wiz Exp $
 
-DISTNAME=      cryptography-0.7.2
+DISTNAME=      cryptography-0.8
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    security python
 MASTER_SITES=  https://pypi.python.org/packages/source/c/cryptography/
diff -r 00890d2f9c62 -r 92360ecb153d security/py-cryptography/PLIST
--- a/security/py-cryptography/PLIST    Sun Mar 15 21:10:07 2015 +0000
+++ b/security/py-cryptography/PLIST    Sun Mar 15 21:10:16 2015 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2015/01/03 16:00:55 wiz Exp $
+@comment $NetBSD: PLIST,v 1.8 2015/03/15 21:10:16 wiz Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -230,6 +230,9 @@
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.py
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyc
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyo
+${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.py
+${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.pyc
+${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dh.pyo
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.py
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyc
 ${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyo
@@ -269,9 +272,9 @@
 ${PYSITELIB}/cryptography/hazmat/primitives/hmac.py
 ${PYSITELIB}/cryptography/hazmat/primitives/hmac.pyc
 ${PYSITELIB}/cryptography/hazmat/primitives/hmac.pyo
-${PYSITELIB}/cryptography/hazmat/primitives/interfaces.py
-${PYSITELIB}/cryptography/hazmat/primitives/interfaces.pyc
-${PYSITELIB}/cryptography/hazmat/primitives/interfaces.pyo
+${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.py
+${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.pyc
+${PYSITELIB}/cryptography/hazmat/primitives/interfaces/__init__.pyo
 ${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.py
 ${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyc
 ${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyo
@@ -289,6 +292,8 @@
 ${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyo
 ${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.c
 ${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.h
+${PYSITELIB}/cryptography/hazmat/primitives/src/padding.c
+${PYSITELIB}/cryptography/hazmat/primitives/src/padding.h
 ${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.py
 ${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyc
 ${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyo
diff -r 00890d2f9c62 -r 92360ecb153d security/py-cryptography/distinfo
--- a/security/py-cryptography/distinfo Sun Mar 15 21:10:07 2015 +0000
+++ b/security/py-cryptography/distinfo Sun Mar 15 21:10:16 2015 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.12 2015/01/18 17:25:39 wiz Exp $
+$NetBSD: distinfo,v 1.13 2015/03/15 21:10:16 wiz Exp $
 
-SHA1 (cryptography-0.7.2.tar.gz) = 55fdb6258da9b0cc5a6ba4c3a3e123ca172d77cc
-RMD160 (cryptography-0.7.2.tar.gz) = e86780518727107e93494b5c915818442f9fe043
-Size (cryptography-0.7.2.tar.gz) = 247477 bytes
+SHA1 (cryptography-0.8.tar.gz) = 2b901c5e07bde4e4dcb2768994e84440980eb80d
+RMD160 (cryptography-0.8.tar.gz) = d2c0d15b645f0eca6007e17b34a9b5d9fa7f1343
+Size (cryptography-0.8.tar.gz) = 268083 bytes
 SHA1 (patch-src_cryptography_hazmat_bindings_utils.py) = 1dbe88db3f1af4dd1b5836d9f353223d532d79bb
 SHA1 (patch-src_cryptography_hazmat_primitives_constant__time.py) = dae1d27d76589a0f1f4236e4b8a311bb44c43185
-SHA1 (patch-src_cryptography_hazmat_primitives_padding.py) = 994ee7d82ad59b9e3d28eaf4b192c17820d13323
+SHA1 (patch-src_cryptography_hazmat_primitives_padding.py) = 26320f2a5c8a756476e4e61a136adf79a2d3d3d1
diff -r 00890d2f9c62 -r 92360ecb153d security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py
--- a/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py      Sun Mar 15 21:10:07 2015 +0000
+++ b/security/py-cryptography/patches/patch-src_cryptography_hazmat_primitives_padding.py      Sun Mar 15 21:10:16 2015 +0000
@@ -1,11 +1,11 @@
-$NetBSD: patch-src_cryptography_hazmat_primitives_padding.py,v 1.1 2015/01/03 16:00:55 wiz Exp $
+$NetBSD: patch-src_cryptography_hazmat_primitives_padding.py,v 1.2 2015/03/15 21:10:16 wiz Exp $
 
 Fix soname so cffi doesn't invent one for each python version + platform.
 
---- src/cryptography/hazmat/primitives/padding.py.orig 2014-12-29 01:46:47.000000000 +0000
+--- src/cryptography/hazmat/primitives/padding.py.orig 2015-03-09 04:49:14.000000000 +0000
 +++ src/cryptography/hazmat/primitives/padding.py
-@@ -55,7 +55,7 @@ uint8_t Cryptography_check_pkcs7_padding
- """
+@@ -22,7 +22,7 @@ with open(os.path.join(os.path.dirname(_
+     FUNCTIONS = f.read()
  
  
 -_ffi = build_ffi(cdef_source=TYPES, verify_source=FUNCTIONS)



Home | Main Index | Thread Index | Old Index