aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-18 07:51:56 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-18 07:51:56 -0400
commitafc2518fbfd9e816c035b953926f8f7d4a94c1fd (patch)
tree97fefe23f030875ef278b0e913148275d0267820 /tests/utils.py
parent62707f134f1bc33ff63ed7b01b56a5dc99a65f7a (diff)
downloadcryptography-afc2518fbfd9e816c035b953926f8f7d4a94c1fd.tar.gz
cryptography-afc2518fbfd9e816c035b953926f8f7d4a94c1fd.tar.bz2
cryptography-afc2518fbfd9e816c035b953926f8f7d4a94c1fd.zip
another file permutation for rsa nist tested.
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 9bcedcf7..2fdff0b9 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -303,6 +303,7 @@ def load_pkcs1_vectors(vector_data):
def load_rsa_nist_vectors(vector_data):
test_data = None
p = None
+ salt_length = None
data = []
for line in vector_data:
@@ -345,6 +346,8 @@ def load_rsa_nist_vectors(vector_data):
"q": q,
"algorithm": value.encode("ascii")
}
+ if salt_length is not None:
+ test_data["salt_length"] = salt_length
data.append(test_data)
elif name == "e" and p is not None:
test_data["public_exponent"] = int(value, 16)