diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-26 11:47:21 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-26 11:47:21 -0600 |
commit | 0e94fbe27e3942620906b7f275fa69c55defacd5 (patch) | |
tree | f9053b3bfeedd0e6a3425b4115edea7131c79de9 | |
parent | d527b30d2f4515ea8d2c9af7fe7317dcab276aff (diff) | |
download | cryptography-0e94fbe27e3942620906b7f275fa69c55defacd5.tar.gz cryptography-0e94fbe27e3942620906b7f275fa69c55defacd5.tar.bz2 cryptography-0e94fbe27e3942620906b7f275fa69c55defacd5.zip |
make public_key an abstractmethod, update docs
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 2 | ||||
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 81bab9d7..c91fd5c5 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -190,7 +190,7 @@ class RSAPrivateKey(six.with_metaclass(abc.ABCMeta)): The bit length of the public modulus. """ - @abc.abstractproperty + @abc.abstractmethod def public_key(self): """ The RSAPublicKey associated with this private key. diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index c2d4c53d..02ba10e2 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -110,7 +110,7 @@ Asymmetric Interfaces An `RSA`_ private key. - .. attribute:: public_key + .. method:: public_key() :type: :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey` @@ -120,13 +120,13 @@ Asymmetric Interfaces :type: int - The public modulus. Alias for ``n``. + The public modulus. .. attribute:: public_exponent :type: int - The public exponent. Alias for ``e``. + The public exponent. .. attribute:: key_length @@ -156,13 +156,13 @@ Asymmetric Interfaces :type: int - The public modulus. + The public modulus. Alias for ``modulus``. .. attribute:: e :type: int - The public exponent. + The public exponent. Alias for ``public_exponent``. .. class:: RSAPublicKey @@ -173,7 +173,7 @@ Asymmetric Interfaces :type: int - The public modulus. Alias for ``n``. + The public modulus. .. attribute:: key_length @@ -185,18 +185,18 @@ Asymmetric Interfaces :type: int - The public exponent. Alias for ``e``. + The public exponent. .. attribute:: n :type: int - The public modulus. + The public modulus. Alias for ``modulus``. .. attribute:: e :type: int - The public exponent. + The public exponent. Alias for ``public_exponent``. .. _`RSA`: http://en.wikipedia.org/wiki/RSA_(cryptosystem) |