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 | |
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`.
-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 |