diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-03 07:14:16 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-03 07:14:16 -0800 |
commit | 2649a694961a74126d977d8780d3d2fa2587e4e4 (patch) | |
tree | 0db4185eb178b3f922eaf02689a7483791c9cefa /cryptography | |
parent | 24cb0e34d187cd4cc11e36f938fc2dbbd8719899 (diff) | |
download | cryptography-2649a694961a74126d977d8780d3d2fa2587e4e4.tar.gz cryptography-2649a694961a74126d977d8780d3d2fa2587e4e4.tar.bz2 cryptography-2649a694961a74126d977d8780d3d2fa2587e4e4.zip |
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 |