aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml7
-rw-r--r--cryptography/hazmat/primitives/interfaces.py9
-rw-r--r--docs/hazmat/primitives/interfaces.rst8
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