aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 15:39:59 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-13 15:39:59 -0600
commitb477b53fc7e8afe64c380315e16eabfeaaaf7847 (patch)
tree286319d0696d7307a27d6e166c15c21c6c043ced
parent8e9c984d5d85db83c5fa45f6f2083d6b5e15326b (diff)
downloadcryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.tar.gz
cryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.tar.bz2
cryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.zip
add the crt coefficients to the interface
-rw-r--r--cryptography/hazmat/primitives/interfaces.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index 460aab76..5ef469d0 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -228,6 +228,27 @@ class RSAPrivateKey(six.with_metaclass(abc.ABCMeta)):
"""
@abc.abstractproperty
+ def dmp1(self):
+ """
+ A Chinese remainder theorem coefficient used to speed up RSA
+ calculations. Calculated as: d mod (p-1)
+ """
+
+ @abc.abstractproperty
+ def dmq1(self):
+ """
+ A Chinese remainder theorem coefficient used to speed up RSA
+ calculations. Calculated as: d mod (q-1)
+ """
+
+ @abc.abstractproperty
+ def iqmp(self):
+ """
+ A Chinese remainder theorem coefficient used to speed up RSA
+ calculations. The modular inverse of q modulo p
+ """
+
+ @abc.abstractproperty
def e(self):
"""
The public exponent of the RSA key. Alias for public_exponent.