aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_rsa.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-16 17:57:43 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-16 17:57:43 -0400
commit1cfdca212bb33b1945dc54e9974595bf06060e1f (patch)
tree1109dc7b0550b7de127db7d6306499b31b93a6bc /tests/hazmat/primitives/test_rsa.py
parentdde593335808cae97704f0036e92a220a1653075 (diff)
downloadcryptography-1cfdca212bb33b1945dc54e9974595bf06060e1f.tar.gz
cryptography-1cfdca212bb33b1945dc54e9974595bf06060e1f.tar.bz2
cryptography-1cfdca212bb33b1945dc54e9974595bf06060e1f.zip
pass the hash class rather than using getattr
Diffstat (limited to 'tests/hazmat/primitives/test_rsa.py')
-rw-r--r--tests/hazmat/primitives/test_rsa.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 8e9637fd..a09d6d66 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -759,7 +759,7 @@ class TestRSAPSSMGF1VerificationSHA1(object):
"SigGenPSS_186-2.rsp",
"SigGenPSS_186-3.rsp",
],
- b"SHA1"
+ hashes.SHA1()
)
@@ -776,7 +776,7 @@ class TestRSAPSSMGF1VerificationSHA224(object):
"SigGenPSS_186-2.rsp",
"SigGenPSS_186-3.rsp",
],
- b"SHA224"
+ hashes.SHA224()
)
@@ -793,7 +793,7 @@ class TestRSAPSSMGF1VerificationSHA256(object):
"SigGenPSS_186-2.rsp",
"SigGenPSS_186-3.rsp",
],
- b"SHA256"
+ hashes.SHA256()
)
@@ -810,7 +810,7 @@ class TestRSAPSSMGF1VerificationSHA384(object):
"SigGenPSS_186-2.rsp",
"SigGenPSS_186-3.rsp",
],
- b"SHA384"
+ hashes.SHA384()
)
@@ -827,7 +827,7 @@ class TestRSAPSSMGF1VerificationSHA512(object):
"SigGenPSS_186-2.rsp",
"SigGenPSS_186-3.rsp",
],
- b"SHA512"
+ hashes.SHA512()
)