pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/py-asn1crypto py-asn1crypto: updated to 1.0.1

branches:  trunk
changeset: 341997:b0ef2d2a8203
user:      adam <>
date:      Fri Oct 11 16:16:45 2019 +0000

py-asn1crypto: updated to 1.0.1


Fix an absolute import in keys to a relative import


Backwards Compatibility Breaks
cms.KeyEncryptionAlgorithmId().native now returns the value "rsaes_pkcs1v15" for OID 1.2.840.113549.1.1.1 instead of "rsa"
Removed functionality to calculate public key values from private key values. Alternatives have been added to oscrypto.
keys.PrivateKeyInfo().unwrap() is now oscrypto.asymmetric.PrivateKey().unwrap()
keys.PrivateKeyInfo().public_key is now oscrypto.asymmetric.PrivateKey().public_key.unwrap()
keys.PrivateKeyInfo().public_key_info is now oscrypto.asymmetric.PrivateKey().public_key.asn1
keys.PrivateKeyInfo().fingerprint is now oscrypto.asymmetric.PrivateKey().fingerprint
keys.PublicKeyInfo().unwrap() is now oscrypto.asymmetric.PublicKey().unwrap()
keys.PublicKeyInfo().fingerprint is now oscrypto.asymmetric.PublicKey().fingerprint

Significantly improved parsing of core.UTCTime() and core.GeneralizedTime() values that include timezones and fractional seconds
util.timezone has a more complete implementation
core.Choice() may now be constructed by a 2-element tuple or a 1-key dict
Added x509.Certificate().not_valid_before and x509.Certificate().not_valid_after
Added core.BitString().unused_bits
Added keys.NamedCurve.register() for non-mainstream curve OIDs
No longer try to load optional performance dependency, libcrypto, on Mac or Linux
ocsp.CertStatus().native will now return meaningful unicode string values when the status choice is "good" or "unknown". Previously both returned None due to the way the structure was designed.
Add support for explicit RSA SSA PSS (1.2.840.113549.1.1.10) to keys.PublicKeyInfo() and keys.PrivateKeyInfo()
Added structures for nested SHA-256 Windows PE signatures to cms.CMSAttribute()
Added RC4 (1.2.840.113549.3.4) to algos.EncryptionAlgorithmId()
Added secp256k1 ( to keys.NamedCurve()
Added SHA-3 and SHAKE OIDs to algos.DigestAlgorithmId() and algos.HmacAlgorithmId()
Added RSA ES OAEP (1.2.840.113549.1.1.7) to cms.KeyEncryptionAlgorithmId()
Add IKE Intermediate ( to x509.KeyPurposeId()
x509.EmailAddress() and x509.DNSName() now handle invalidly-encoded values using tags for core.PrintableString() and core.UTF8String()
Add parameter structue from RFC 5084 for AES-CCM to algos.EncryptionAlgorithm()
Improved robustness of parsing broken core.Sequence() and core.SequenceOf() values

Bug Fixes
Fixed encoding of tag values over 30
core.IntegerBitString() and core.IntegerOctetString() now restrict values to non-negative integers since negative values are not implemented
When copying or dumping a BER-encoded indefinite-length value, automatically force re-encoding to DER. To ensure all nested values are always DER-encoded, .dump(True) must be called.
Fix UnboundLocalError when calling x509.IPAddress().native on an encoded value that has a length of zero
Fixed passing class_ via unicode string name to core.Asn1Value()
Fixed a bug where EC private keys with leading null bytes would be encoded in keys.ECPrivateKey() more narrowly than RFC 5915 requires
Fixed some edge-case bugs in util.int_to_bytes()
x509.URI() now only normalizes values when comparing
Fixed BER-decoding of indefinite length core.BitString()
Fixed DER-encoding of empty core.BitString()
Fixed a missing return value for core.Choice().parse()
Fixed core.Choice().contents working when the chosen alternative is a core.Choice() also
Fixed parsing and encoding of nested core.Choice() objects
Fixed a bug causing core.ObjectIdentifier().native to sometimes not map the OID


 security/py-asn1crypto/Makefile |   4 ++--
 security/py-asn1crypto/PLIST    |  15 ++-------------
 security/py-asn1crypto/distinfo |  10 +++++-----
 3 files changed, 9 insertions(+), 20 deletions(-)

diffs (66 lines):

diff -r caa57b7ca8c2 -r b0ef2d2a8203 security/py-asn1crypto/Makefile
--- a/security/py-asn1crypto/Makefile   Fri Oct 11 16:09:02 2019 +0000
+++ b/security/py-asn1crypto/Makefile   Fri Oct 11 16:16:45 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2017/12/17 16:54:02 adam Exp $
+# $NetBSD: Makefile,v 1.5 2019/10/11 16:16:45 adam Exp $
-DISTNAME=      asn1crypto-0.24.0
+DISTNAME=      asn1crypto-1.0.1
 CATEGORIES=    security python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=a/asn1crypto/}
diff -r caa57b7ca8c2 -r b0ef2d2a8203 security/py-asn1crypto/PLIST
--- a/security/py-asn1crypto/PLIST      Fri Oct 11 16:09:02 2019 +0000
+++ b/security/py-asn1crypto/PLIST      Fri Oct 11 16:16:45 2019 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2017/03/13 09:39:18 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/10/11 16:16:45 adam Exp $
@@ -6,15 +7,9 @@
@@ -27,12 +22,6 @@
diff -r caa57b7ca8c2 -r b0ef2d2a8203 security/py-asn1crypto/distinfo
--- a/security/py-asn1crypto/distinfo   Fri Oct 11 16:09:02 2019 +0000
+++ b/security/py-asn1crypto/distinfo   Fri Oct 11 16:16:45 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2017/12/17 16:54:02 adam Exp $
+$NetBSD: distinfo,v 1.5 2019/10/11 16:16:45 adam Exp $
-SHA1 (asn1crypto-0.24.0.tar.gz) = c8f64e99bc01d90c412891cdad97675d8fe79cc7
-RMD160 (asn1crypto-0.24.0.tar.gz) = 64af381c1ea47881370b0c8ee77b9220311327c1
-SHA512 (asn1crypto-0.24.0.tar.gz) = 44d442a6ddfa971e31e24712fe084368356deb5e1c4c3b3e813e0910931860215bc1c4f9eb2c4bd4fdef607c324086c096e9357068646efd28c97f2d4f85c62f
-Size (asn1crypto-0.24.0.tar.gz) = 104964 bytes
+SHA1 (asn1crypto-1.0.1.tar.gz) = 66c033d7c8e2e2cd1f5903543c032eaaa8c496cf
+RMD160 (asn1crypto-1.0.1.tar.gz) = 7a38312c55b3ffe33daee80ca3797a1a4b007243
+SHA512 (asn1crypto-1.0.1.tar.gz) = f7bb10b1fafb9f7fc3cba89a76c09b1641a955f221e4dc7742754ec098e3ddfdb09dc25b0660f5c6caf4f1899a2bfe3ed54f2423c6b38f43150614b3d0268e8c
+Size (asn1crypto-1.0.1.tar.gz) = 115877 bytes

Home | Main Index | Thread Index | Old Index