aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-06-22 20:45:41 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2015-06-22 20:45:41 -0400
commit02fe5a8d2d2d87830484f731e821054a21a9bf4f (patch)
tree6b2066d1411ffeb40e942e763beaa3dda1860b11 /src
parent02a299d8b2d70e4e145fbd420787ea35873d96f7 (diff)
downloadcryptography-02fe5a8d2d2d87830484f731e821054a21a9bf4f.tar.gz
cryptography-02fe5a8d2d2d87830484f731e821054a21a9bf4f.tar.bz2
cryptography-02fe5a8d2d2d87830484f731e821054a21a9bf4f.zip
Remove our workarounds for pyasn.1 bugs, a new pyasn.1 is out!
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/primitives/asymmetric/utils.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/cryptography/hazmat/primitives/asymmetric/utils.py b/src/cryptography/hazmat/primitives/asymmetric/utils.py
index 29390e40..b10ea957 100644
--- a/src/cryptography/hazmat/primitives/asymmetric/utils.py
+++ b/src/cryptography/hazmat/primitives/asymmetric/utils.py
@@ -29,11 +29,6 @@ def decode_rfc6979_signature(signature):
raise ValueError(
"The signature contains bytes after the end of the ASN.1 sequence."
)
- # pyasn1 can erroneously return this from top-level DER decoding.
- # It's intended as a sentinel in recursive BER decoding, so it's
- # returned even though an asn1Spec is provided.
- if eoo.endOfOctets.isSameTypeWith(data) and data == eoo.endOfOctets:
- raise ValueError("Invalid signature data. Unable to decode ASN.1")
r = int(data.getComponentByName('r'))
s = int(data.getComponentByName('s'))