Sun Oct 5 14:53:10 2014 UTC ()
Update to 0.6:

0.6 - 2014-09-29
~~~~~~~~~~~~~~~~

* Added
  :func:`~cryptography.hazmat.primitives.serialization.load_pem_private_key` to
  ease loading private keys, and
  :func:`~cryptography.hazmat.primitives.serialization.load_pem_public_key` to
  support loading public keys.
* Removed the, deprecated in 0.4, support for the ``salt_length`` argument to
  the :class:`~cryptography.hazmat.primitives.asymmetric.padding.MGF1`
  constructor. The ``salt_length`` should be passed to
  :class:`~cryptography.hazmat.primitives.asymmetric.padding.PSS` instead.
* Fix compilation on OS X Yosemite.
* Deprecated ``elliptic_curve_private_key_from_numbers`` and
  ``elliptic_curve_public_key_from_numbers`` in favor of
  ``load_elliptic_curve_private_numbers`` and
  ``load_elliptic_curve_public_numbers`` on
  :class:`~cryptography.hazmat.backends.interfaces.EllipticCurveBackend`.
* Added
  :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePrivateKeyWithNumbers`
  and
  :class:`~cryptography.hazmat.primitives.interfaces.EllipticCurvePublicKeyWithNumbers`
  support.
* Work around three GCM related bugs in CommonCrypto and OpenSSL.

  * On the CommonCrypto backend adding AAD but not subsequently calling update
    would return null tag bytes.

  * One the CommonCrypto backend a call to update without an empty add AAD call
    would return null ciphertext bytes.

  * On the OpenSSL backend with certain versions adding AAD only would give
    invalid tag bytes.

* Support loading EC private keys from PEM.


(wiz)
diff -r1.10 -r1.11 pkgsrc/security/py-cryptography/Makefile
diff -r1.4 -r1.5 pkgsrc/security/py-cryptography/PLIST
diff -r1.8 -r1.9 pkgsrc/security/py-cryptography/distinfo

cvs diff -r1.10 -r1.11 pkgsrc/security/py-cryptography/Makefile (expand / switch to unified diff)

--- pkgsrc/security/py-cryptography/Makefile 2014/08/25 18:37:18 1.10
+++ pkgsrc/security/py-cryptography/Makefile 2014/10/05 14:53:10 1.11
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.10 2014/08/25 18:37:18 wiz Exp $ 1# $NetBSD: Makefile,v 1.11 2014/10/05 14:53:10 wiz Exp $
2 2
3DISTNAME= cryptography-0.5.4 3DISTNAME= cryptography-0.6
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= security python 5CATEGORIES= security python
6MASTER_SITES= https://pypi.python.org/packages/source/c/cryptography/ 6MASTER_SITES= https://pypi.python.org/packages/source/c/cryptography/
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://pypi.python.org/pypi/cryptography/ 9HOMEPAGE= https://pypi.python.org/pypi/cryptography/
10COMMENT= Cryptographic recipes and primitives for Python 10COMMENT= Cryptographic recipes and primitives for Python
11LICENSE= apache-2.0 11LICENSE= apache-2.0
12 12
13DEPENDS+= ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi 13DEPENDS+= ${PYPKGPREFIX}-cffi>=0.8:../../devel/py-cffi
14DEPENDS+= ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser 14DEPENDS+= ${PYPKGPREFIX}-cparser>=2.10:../../devel/py-cparser
15DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six 15DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
16# actually, TEST_DEPENDS 16# actually, TEST_DEPENDS

cvs diff -r1.4 -r1.5 pkgsrc/security/py-cryptography/PLIST (expand / switch to unified diff)

--- pkgsrc/security/py-cryptography/PLIST 2014/07/29 11:51:36 1.4
+++ pkgsrc/security/py-cryptography/PLIST 2014/10/05 14:53:10 1.5
@@ -1,17 +1,18 @@ @@ -1,17 +1,18 @@
1@comment $NetBSD: PLIST,v 1.4 2014/07/29 11:51:36 wiz Exp $ 1@comment $NetBSD: PLIST,v 1.5 2014/10/05 14:53:10 wiz 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}/entry_points.txt
5${PYSITELIB}/${EGG_INFODIR}/not-zip-safe 6${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
6${PYSITELIB}/${EGG_INFODIR}/requires.txt 7${PYSITELIB}/${EGG_INFODIR}/requires.txt
7${PYSITELIB}/${EGG_INFODIR}/top_level.txt 8${PYSITELIB}/${EGG_INFODIR}/top_level.txt
8${PYSITELIB}/cryptography/__about__.py 9${PYSITELIB}/cryptography/__about__.py
9${PYSITELIB}/cryptography/__about__.pyc 10${PYSITELIB}/cryptography/__about__.pyc
10${PYSITELIB}/cryptography/__about__.pyo 11${PYSITELIB}/cryptography/__about__.pyo
11${PYSITELIB}/cryptography/__init__.py 12${PYSITELIB}/cryptography/__init__.py
12${PYSITELIB}/cryptography/__init__.pyc 13${PYSITELIB}/cryptography/__init__.pyc
13${PYSITELIB}/cryptography/__init__.pyo 14${PYSITELIB}/cryptography/__init__.pyo
14${PYSITELIB}/cryptography/checkpkcs7padding.so 15${PYSITELIB}/cryptography/checkpkcs7padding.so
15${PYSITELIB}/cryptography/constanttime.so 16${PYSITELIB}/cryptography/constanttime.so
16${PYSITELIB}/cryptography/cryptography.so 17${PYSITELIB}/cryptography/cryptography.so
17${PYSITELIB}/cryptography/exceptions.py 18${PYSITELIB}/cryptography/exceptions.py
@@ -67,26 +68,27 @@ ${PYSITELIB}/cryptography/hazmat/backend @@ -67,26 +68,27 @@ ${PYSITELIB}/cryptography/hazmat/backend
67${PYSITELIB}/cryptography/hazmat/backends/openssl/ec.pyo 68${PYSITELIB}/cryptography/hazmat/backends/openssl/ec.pyo
68${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.py 69${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.py
69${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyc 70${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyc
70${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyo 71${PYSITELIB}/cryptography/hazmat/backends/openssl/hashes.pyo
71${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.py 72${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.py
72${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyc 73${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyc
73${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyo 74${PYSITELIB}/cryptography/hazmat/backends/openssl/hmac.pyo
74${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.py 75${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.py
75${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyc 76${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyc
76${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyo 77${PYSITELIB}/cryptography/hazmat/backends/openssl/rsa.pyo
77${PYSITELIB}/cryptography/hazmat/bindings/__init__.py 78${PYSITELIB}/cryptography/hazmat/bindings/__init__.py
78${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyc 79${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyc
79${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyo 80${PYSITELIB}/cryptography/hazmat/bindings/__init__.pyo
 81${PYSITELIB}/cryptography/hazmat/bindings/__pycache__/cryptography.hazmat.bindings.openssl.x509_vfy.c
80${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.py 82${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.py
81${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyc 83${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyc
82${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyo 84${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/__init__.pyo
83${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.py 85${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.py
84${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyc 86${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyc
85${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyo 87${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/binding.pyo
86${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.py 88${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.py
87${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyc 89${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyc
88${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyo 90${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/cf.pyo
89${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py 91${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.py
90${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyc 92${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyc
91${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyo 93${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_cryptor.pyo
92${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_digest.py 94${PYSITELIB}/cryptography/hazmat/bindings/commoncrypto/common_digest.py
@@ -208,26 +210,28 @@ ${PYSITELIB}/cryptography/hazmat/binding @@ -208,26 +210,28 @@ ${PYSITELIB}/cryptography/hazmat/binding
208${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509_vfy.pyo 210${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509_vfy.pyo
209${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.py 211${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.py
210${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyc 212${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyc
211${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyo 213${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509name.pyo
212${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.py 214${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.py
213${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyc 215${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyc
214${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyo 216${PYSITELIB}/cryptography/hazmat/bindings/openssl/x509v3.pyo
215${PYSITELIB}/cryptography/hazmat/bindings/utils.py 217${PYSITELIB}/cryptography/hazmat/bindings/utils.py
216${PYSITELIB}/cryptography/hazmat/bindings/utils.pyc 218${PYSITELIB}/cryptography/hazmat/bindings/utils.pyc
217${PYSITELIB}/cryptography/hazmat/bindings/utils.pyo 219${PYSITELIB}/cryptography/hazmat/bindings/utils.pyo
218${PYSITELIB}/cryptography/hazmat/primitives/__init__.py 220${PYSITELIB}/cryptography/hazmat/primitives/__init__.py
219${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyc 221${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyc
220${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyo 222${PYSITELIB}/cryptography/hazmat/primitives/__init__.pyo
 223${PYSITELIB}/cryptography/hazmat/primitives/__pycache__/checkpkcs7padding.c
 224${PYSITELIB}/cryptography/hazmat/primitives/__pycache__/constanttime.c
221${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.py 225${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.py
222${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyc 226${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyc
223${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyo 227${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/__init__.pyo
224${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.py 228${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.py
225${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyc 229${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyc
226${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyo 230${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/dsa.pyo
227${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.py 231${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.py
228${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyc 232${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyc
229${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyo 233${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/ec.pyo
230${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.py 234${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.py
231${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyc 235${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyc
232${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyo 236${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/padding.pyo
233${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.py 237${PYSITELIB}/cryptography/hazmat/primitives/asymmetric/rsa.py
@@ -265,25 +269,27 @@ ${PYSITELIB}/cryptography/hazmat/primiti @@ -265,25 +269,27 @@ ${PYSITELIB}/cryptography/hazmat/primiti
265${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyo 269${PYSITELIB}/cryptography/hazmat/primitives/kdf/__init__.pyo
266${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.py 270${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.py
267${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyc 271${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyc
268${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyo 272${PYSITELIB}/cryptography/hazmat/primitives/kdf/hkdf.pyo
269${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.py 273${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.py
270${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyc 274${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyc
271${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyo 275${PYSITELIB}/cryptography/hazmat/primitives/kdf/pbkdf2.pyo
272${PYSITELIB}/cryptography/hazmat/primitives/padding.py 276${PYSITELIB}/cryptography/hazmat/primitives/padding.py
273${PYSITELIB}/cryptography/hazmat/primitives/padding.pyc 277${PYSITELIB}/cryptography/hazmat/primitives/padding.pyc
274${PYSITELIB}/cryptography/hazmat/primitives/padding.pyo 278${PYSITELIB}/cryptography/hazmat/primitives/padding.pyo
275${PYSITELIB}/cryptography/hazmat/primitives/serialization.py 279${PYSITELIB}/cryptography/hazmat/primitives/serialization.py
276${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyc 280${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyc
277${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyo 281${PYSITELIB}/cryptography/hazmat/primitives/serialization.pyo
 282${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.c
 283${PYSITELIB}/cryptography/hazmat/primitives/src/constant_time.h
278${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.py 284${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.py
279${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyc 285${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyc
280${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyo 286${PYSITELIB}/cryptography/hazmat/primitives/twofactor/__init__.pyo
281${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.py 287${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.py
282${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyc 288${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyc
283${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyo 289${PYSITELIB}/cryptography/hazmat/primitives/twofactor/hotp.pyo
284${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.py 290${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.py
285${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyc 291${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyc
286${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyo 292${PYSITELIB}/cryptography/hazmat/primitives/twofactor/totp.pyo
287${PYSITELIB}/cryptography/utils.py 293${PYSITELIB}/cryptography/utils.py
288${PYSITELIB}/cryptography/utils.pyc 294${PYSITELIB}/cryptography/utils.pyc
289${PYSITELIB}/cryptography/utils.pyo 295${PYSITELIB}/cryptography/utils.pyo

cvs diff -r1.8 -r1.9 pkgsrc/security/py-cryptography/distinfo (expand / switch to unified diff)

--- pkgsrc/security/py-cryptography/distinfo 2014/08/25 18:37:18 1.8
+++ pkgsrc/security/py-cryptography/distinfo 2014/10/05 14:53:10 1.9
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.8 2014/08/25 18:37:18 wiz Exp $ 1$NetBSD: distinfo,v 1.9 2014/10/05 14:53:10 wiz Exp $
2 2
3SHA1 (cryptography-0.5.4.tar.gz) = 98a8d292738f8597d15e300bebd4dec59f5b9480 3SHA1 (cryptography-0.6.tar.gz) = 26e357a3d22a408212e704d86450b76583de32d6
4RMD160 (cryptography-0.5.4.tar.gz) = 11f0ad679d0ad749665fececb3215b37e6a6d08d 4RMD160 (cryptography-0.6.tar.gz) = 2b4df476f309fff99cf84e57fe58c8e348ca3760
5Size (cryptography-0.5.4.tar.gz) = 320104 bytes 5Size (cryptography-0.6.tar.gz) = 236091 bytes
6SHA1 (patch-cryptography_hazmat_bindings_utils.py) = 4f4f53262efac03ea2b93c1338fed00aef4dc9cc 6SHA1 (patch-cryptography_hazmat_bindings_utils.py) = 4f4f53262efac03ea2b93c1338fed00aef4dc9cc
7SHA1 (patch-cryptography_hazmat_primitives_constant__time.py) = 2af2bed42ba2d8a3eca3898abf17715066664f82 7SHA1 (patch-cryptography_hazmat_primitives_constant__time.py) = 2af2bed42ba2d8a3eca3898abf17715066664f82
8SHA1 (patch-cryptography_hazmat_primitives_padding.py) = f840dbde2109dee89632bf4bc5b893521971d640 8SHA1 (patch-cryptography_hazmat_primitives_padding.py) = f840dbde2109dee89632bf4bc5b893521971d640