aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-16 17:57:20 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-16 17:57:20 -0400
commitdde593335808cae97704f0036e92a220a1653075 (patch)
treed01bd53354f079c24975828a2e02874866eb336e /tests/test_utils.py
parent762014e1a48606447a43187f522196a35628de1b (diff)
downloadcryptography-dde593335808cae97704f0036e92a220a1653075.tar.gz
cryptography-dde593335808cae97704f0036e92a220a1653075.tar.bz2
cryptography-dde593335808cae97704f0036e92a220a1653075.zip
change rsa nist loader to use strings for algorithm name
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r--tests/test_utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py
index 433dab04..6d2ef362 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1075,7 +1075,7 @@ def test_load_rsa_nist_vectors():
"modulus": int("bcb47b2e0dafcba81ff2a2b5cb115ca7e757184c9d72bcdcda"
"707a146b3b4e29989d", 16),
"public_exponent": 65537,
- "algorithm": b"SHA1",
+ "algorithm": "SHA1",
"salt_length": 20,
"msg": b"1248f62a4389f42f7b4bb131053d6c88a994db2075b912ccbe3ea7dc6"
b"11714f14e",
@@ -1086,7 +1086,7 @@ def test_load_rsa_nist_vectors():
"modulus": int("bcb47b2e0dafcba81ff2a2b5cb115ca7e757184c9d72bcdcda"
"707a146b3b4e29989d", 16),
"public_exponent": 65537,
- "algorithm": b"SHA384",
+ "algorithm": "SHA384",
"salt_length": 20,
"msg": b"e511903c2f1bfba245467295ac95413ac4746c984c3750a728c388aa6"
b"28b0ebf",
@@ -1096,7 +1096,7 @@ def test_load_rsa_nist_vectors():
{
"modulus": 78187493520,
"public_exponent": 65537,
- "algorithm": b"SHA512",
+ "algorithm": "SHA512",
"salt_length": 20,
"msg": b"3456781293fab829",
"s": b"deadbeef0000"