change names of key -> numbers interfaces
diff --git a/cryptography/hazmat/primitives/interfaces.py b/cryptography/hazmat/primitives/interfaces.py
index 8e0dd87..e827271 100644
--- a/cryptography/hazmat/primitives/interfaces.py
+++ b/cryptography/hazmat/primitives/interfaces.py
@@ -458,16 +458,16 @@
@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 c27782e..677199c 100644
--- a/docs/hazmat/primitives/interfaces.rst
+++ b/docs/hazmat/primitives/interfaces.rst
@@ -492,33 +492,33 @@
.. 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`