diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-03 09:03:19 -0800 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-03 09:03:19 -0800 |
commit | fa9431d29f90b034aea72f4cc8d1f6ce94159603 (patch) | |
tree | d2bb160a2e58e7f2ad5b33a641b7c05497b9345d /cryptography | |
parent | c0ad928241063478534ded0f9a1b45ee64769f90 (diff) | |
parent | 5b2f13db968efb6c772971cc1668c5d1b0e9d2f8 (diff) | |
download | cryptography-fa9431d29f90b034aea72f4cc8d1f6ce94159603.tar.gz cryptography-fa9431d29f90b034aea72f4cc8d1f6ce94159603.tar.bz2 cryptography-fa9431d29f90b034aea72f4cc8d1f6ce94159603.zip |
Merge pull request #550 from alex/private-exponent
Refer to the `d` param of RSA as `private_exponent`.
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 4fa24570..460aab76 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -185,6 +185,12 @@ class RSAPrivateKey(six.with_metaclass(abc.ABCMeta)): """ @abc.abstractproperty + def private_exponent(self): + """ + The private exponent of the RSA key. + """ + + @abc.abstractproperty def key_size(self): """ The bit length of the public modulus. @@ -217,7 +223,8 @@ class RSAPrivateKey(six.with_metaclass(abc.ABCMeta)): @abc.abstractproperty def d(self): """ - The private exponent. This can be calculated using p and q. + The private exponent. This can be calculated using p and q. Alias for + private_exponent. """ @abc.abstractproperty |