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 | |
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`.
-rw-r--r-- | .travis.yml | 7 | ||||
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 9 | ||||
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 8 |
3 files changed, 18 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index a70bb8cf..b77a7b76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,10 +42,9 @@ notifications: use_notice: true skip_join: true -# When building an exclude matrix on Travis you must supply -# the exact variable combinations you want to exclude from -# your build matrix. There is no (current) way to make this -# less verbose. +# When building an exclude matrix on Travis you must supply the exact variable +# combinations you want to exclude from your build matrix. There is no +# (current) way to make this less verbose. matrix: exclude: - os: osx 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 diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 7fef1c13..cbca5ed6 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -130,6 +130,12 @@ Asymmetric Interfaces The public exponent. + .. attribute:: private_exponent + + :type: int + + The private exponent. + .. attribute:: key_size :type: int @@ -152,7 +158,7 @@ Asymmetric Interfaces :type: int - The private exponent. + The private exponent. Alias for :attr:`private_exponent`. .. attribute:: n |