aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 12:23:27 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 12:23:27 -0600
commit8e9c984d5d85db83c5fa45f6f2083d6b5e15326b (patch)
tree156648b0dfe072002795b290b03669a19cb7abaf /tests/hazmat/primitives
parentb393bdcbc637768ad774e8404f2efcbdd7f1e8c5 (diff)
downloadcryptography-8e9c984d5d85db83c5fa45f6f2083d6b5e15326b.tar.gz
cryptography-8e9c984d5d85db83c5fa45f6f2083d6b5e15326b.tar.bz2
cryptography-8e9c984d5d85db83c5fa45f6f2083d6b5e15326b.zip
expose dmp1, dmq1, iqmp getters on RSAPrivateKey
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_rsa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 9dc1a9e4..312d5a6f 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -45,9 +45,9 @@ def _check_rsa_private_key(skey):
assert skey.private_exponent
assert skey.p * skey.q == skey.modulus
assert skey.key_size
- assert skey._dmp1 == skey.d % (skey.p - 1)
- assert skey._dmq1 == skey.d % (skey.q - 1)
- assert skey._iqmp == _modinv(skey.q, skey.p)
+ assert skey.dmp1 == skey.d % (skey.p - 1)
+ assert skey.dmq1 == skey.d % (skey.q - 1)
+ assert skey.iqmp == _modinv(skey.q, skey.p)
pkey = skey.public_key()
assert pkey