aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-07 10:41:34 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-07 10:41:34 -0600
commitae6db32351447bf41b809ea4b18f17641724dac1 (patch)
tree195274b00a9ca7d2a0afed71bd8be4aac16f118b /tests
parent73251faf2cb043dc9795b46c98c7084482d2aed2 (diff)
downloadcryptography-ae6db32351447bf41b809ea4b18f17641724dac1.tar.gz
cryptography-ae6db32351447bf41b809ea4b18f17641724dac1.tar.bz2
cryptography-ae6db32351447bf41b809ea4b18f17641724dac1.zip
add comment describing how the ASN.1 sequence in a test is invalid
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_asym_utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_asym_utils.py b/tests/hazmat/primitives/test_asym_utils.py
index 640b5b3d..1a945f3a 100644
--- a/tests/hazmat/primitives/test_asym_utils.py
+++ b/tests/hazmat/primitives/test_asym_utils.py
@@ -43,4 +43,6 @@ def test_decode_rfc6979_trailing_bytes():
def test_decode_rfc6979_invalid_asn1():
with pytest.raises(ValueError):
+ # This byte sequence has an invalid ASN.1 sequence length as well as
+ # an invalid integer length for the second integer.
decode_rfc6979_signature(b"0\x07\x02\x01\x01\x02\x02\x01")