aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-15 15:18:10 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-15 15:18:10 -0400
commit99335fe99038c020d557deb8160e0575c04e155b (patch)
tree1ccc465af47782beebf646721a0826dc4fdfe476
parentb30ecd747e5834614794243e83e62cac65bfe549 (diff)
parent48e0c20b908ac68be67188533e9fb4a1cdc0dd9d (diff)
downloadcryptography-99335fe99038c020d557deb8160e0575c04e155b.tar.gz
cryptography-99335fe99038c020d557deb8160e0575c04e155b.tar.bz2
cryptography-99335fe99038c020d557deb8160e0575c04e155b.zip
Merge pull request #925 from anotherthomas/nist-fips-186-rsa-tests
added unused NIST test files for FIPS 186-2 RSA (PKCS#1 v1.5) to test cases
-rw-r--r--tests/hazmat/primitives/test_rsa.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index cc87d981..236a3bb1 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1065,6 +1065,8 @@ class TestRSAPKCS1Verification(object):
load_rsa_nist_vectors,
os.path.join("asymmetric", "RSA", "FIPS_186-2"),
[
+ "SigGen15_186-2.rsp",
+ "SigGen15_186-3.rsp",
"SigVer15_186-3.rsp",
],
hashes.SHA1(),
@@ -1078,6 +1080,8 @@ class TestRSAPKCS1Verification(object):
load_rsa_nist_vectors,
os.path.join("asymmetric", "RSA", "FIPS_186-2"),
[
+ "SigGen15_186-2.rsp",
+ "SigGen15_186-3.rsp",
"SigVer15_186-3.rsp",
],
hashes.SHA224(),
@@ -1091,6 +1095,8 @@ class TestRSAPKCS1Verification(object):
load_rsa_nist_vectors,
os.path.join("asymmetric", "RSA", "FIPS_186-2"),
[
+ "SigGen15_186-2.rsp",
+ "SigGen15_186-3.rsp",
"SigVer15_186-3.rsp",
],
hashes.SHA256(),
@@ -1104,6 +1110,8 @@ class TestRSAPKCS1Verification(object):
load_rsa_nist_vectors,
os.path.join("asymmetric", "RSA", "FIPS_186-2"),
[
+ "SigGen15_186-2.rsp",
+ "SigGen15_186-3.rsp",
"SigVer15_186-3.rsp",
],
hashes.SHA384(),
@@ -1117,6 +1125,8 @@ class TestRSAPKCS1Verification(object):
load_rsa_nist_vectors,
os.path.join("asymmetric", "RSA", "FIPS_186-2"),
[
+ "SigGen15_186-2.rsp",
+ "SigGen15_186-3.rsp",
"SigVer15_186-3.rsp",
],
hashes.SHA512(),