diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-12 07:29:11 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-08-12 07:29:11 -0400 |
commit | 5ec74d1411e74dfb0aaaa04d52fba3672e4f189a (patch) | |
tree | 7f416dc9660826b61f63857945848aed1e0b0f42 /tests/hazmat/primitives/test_dsa.py | |
parent | 29629832963a512b02944a04de5840d516478396 (diff) | |
parent | 31c5c3376dee8342ccfdb3fadb481d3c4156382c (diff) | |
download | cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.tar.gz cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.tar.bz2 cryptography-5ec74d1411e74dfb0aaaa04d52fba3672e4f189a.zip |
Merge pull request #2250 from reaperhulk/fix-2246
resolve incorrect docs/naming around DSA (r, s) tuple encode/decode
Diffstat (limited to 'tests/hazmat/primitives/test_dsa.py')
-rw-r--r-- | tests/hazmat/primitives/test_dsa.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_dsa.py b/tests/hazmat/primitives/test_dsa.py index b6b0de94..c263ef2b 100644 --- a/tests/hazmat/primitives/test_dsa.py +++ b/tests/hazmat/primitives/test_dsa.py @@ -17,7 +17,7 @@ from cryptography.hazmat.backends.interfaces import ( from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import dsa from cryptography.hazmat.primitives.asymmetric.utils import ( - encode_rfc6979_signature + encode_dss_signature ) from cryptography.utils import bit_length @@ -567,7 +567,7 @@ class TestDSAVerification(object): ), y=vector['y'] ).public_key(backend) - sig = encode_rfc6979_signature(vector['r'], vector['s']) + sig = encode_dss_signature(vector['r'], vector['s']) verifier = public_key.verifier(sig, algorithm()) verifier.update(vector['msg']) if vector['result'] == "F": |