diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-13 15:39:59 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-13 15:39:59 -0600 |
commit | b477b53fc7e8afe64c380315e16eabfeaaaf7847 (patch) | |
tree | 286319d0696d7307a27d6e166c15c21c6c043ced | |
parent | 8e9c984d5d85db83c5fa45f6f2083d6b5e15326b (diff) | |
download | cryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.tar.gz cryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.tar.bz2 cryptography-b477b53fc7e8afe64c380315e16eabfeaaaf7847.zip |
add the crt coefficients to the interface
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 21 |
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. |