diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-07 15:38:40 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-07 15:38:40 -0500 |
commit | 48fe4151b03cd15098d72e2ed394fd08085803f0 (patch) | |
tree | 81f98f25d16fcae658ada4e86da3bad36c1a995c | |
parent | 3e0c21e274b32d9c6dd2ac41ee8607e37d400e83 (diff) | |
download | cryptography-48fe4151b03cd15098d72e2ed394fd08085803f0.tar.gz cryptography-48fe4151b03cd15098d72e2ed394fd08085803f0.tar.bz2 cryptography-48fe4151b03cd15098d72e2ed394fd08085803f0.zip |
change names of key -> numbers interfaces
-rw-r--r-- | cryptography/hazmat/primitives/interfaces.py | 8 | ||||
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 20 |
2 files changed, 14 insertions, 14 deletions
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py index 8e0dd873..e827271f 100644 --- a/cryptography/hazmat/primitives/interfaces.py +++ b/cryptography/hazmat/primitives/interfaces.py @@ -458,16 +458,16 @@ class EllipticCurvePublicKey(object): @six.add_metaclass(abc.ABCMeta) -class RSAPrivateNumbersSerialization(object): - def rsa_private_numbers(self): +class RSAPrivateNumbersAvailable(object): + def private_numbers(self): """ Returns an RSAPrivateNumbers. """ @six.add_metaclass(abc.ABCMeta) -class RSAPublicNumbersSerialization(object): - def rsa_public_numbers(self): +class RSAPublicNumbersAvailable(object): + def public_numbers(self): """ Returns an RSAPublicNumbers """ diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index c27782e4..677199ca 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -492,33 +492,33 @@ Asymmetric interfaces .. attribute:: name -Key Serialization ------------------ +Raw Numbers +~~~~~~~~~~~ -.. class:: RSAPrivateNumbersSerialziation +.. class:: RSAPrivateNumbersAvailable .. versionadded:: 0.5 - .. method:: rsa_private_numbers() + .. method:: private_numbers() - Serialize to an + Create a :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` - representation. + object. :returns: An :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` instance. -.. class:: RSAPublicNumberSerialization +.. class:: RSAPublicNumbersAvailable .. versionadded:: 0.5 - .. method:: rsa_public_numbers() + .. method:: public_numbers() - Serialize to an + Create a :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers` - representation. + object. :returns: An :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers` |