aboutsummaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-02-15 18:57:11 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-02-15 18:57:11 -0800
commitc5b0aa06a7cc843578523acb847646f3881df27f (patch)
treee663368d48377c6c61a264a9071734acfd5795fe /tests/utils.py
parent1deb6872567a76a547274737b3d6348940d15e8b (diff)
parentb557045ae353e98e869088714e4f433383f87ce5 (diff)
downloadcryptography-c5b0aa06a7cc843578523acb847646f3881df27f.tar.gz
cryptography-c5b0aa06a7cc843578523acb847646f3881df27f.tar.bz2
cryptography-c5b0aa06a7cc843578523acb847646f3881df27f.zip
Merge pull request #605 from reaperhulk/add-crt-coefficients
Add RSA CRT Coefficients
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 408b05f6..2bbecd7d 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -262,6 +262,12 @@ def load_pkcs1_vectors(vector_data):
attr = "p"
elif line.startswith("# Prime 2:"):
attr = "q"
+ elif line.startswith("# Prime exponent 1:"):
+ attr = "dmp1"
+ elif line.startswith("# Prime exponent 2:"):
+ attr = "dmq1"
+ elif line.startswith("# Coefficient:"):
+ attr = "iqmp"
elif line.startswith("#"):
attr = None
else: