From 1cfdca212bb33b1945dc54e9974595bf06060e1f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sun, 16 Mar 2014 17:57:43 -0400 Subject: pass the hash class rather than using getattr --- tests/hazmat/primitives/test_rsa.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/hazmat/primitives/test_rsa.py') 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() ) -- cgit v1.2.3