From 3e0c21e274b32d9c6dd2ac41ee8607e37d400e83 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 13 May 2014 14:30:45 -0700 Subject: Documentation and interfaces for serialization to RSA*Numbers representations. --- docs/hazmat/primitives/interfaces.rst | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'docs') diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index d5ca59ab..c27782e4 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -491,6 +491,40 @@ Asymmetric interfaces .. attribute:: name + +Key Serialization +----------------- + +.. class:: RSAPrivateNumbersSerialziation + + .. versionadded:: 0.5 + + .. method:: rsa_private_numbers() + + Serialize to an + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` + representation. + + :returns: An + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPrivateNumbers` + instance. + + +.. class:: RSAPublicNumberSerialization + + .. versionadded:: 0.5 + + .. method:: rsa_public_numbers() + + Serialize to an + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers` + representation. + + :returns: An + :class:`~cryptography.hazmat.primitives.asymmetric.rsa.RSAPublicNumbers` + instance. + + Hash algorithms ~~~~~~~~~~~~~~~ -- cgit v1.2.3