diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-15 17:59:27 -0400 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-20 16:53:03 -0500 |
commit | 27f9ca663def6fdccd97297ef40c55923a43394a (patch) | |
tree | 16c242e0515145ea624b7cb0c4096167d523eefe /docs/hazmat/primitives/interfaces.rst | |
parent | 7bdcdc175675bc78edaa7e0f931676652ab7a427 (diff) | |
download | cryptography-27f9ca663def6fdccd97297ef40c55923a43394a.tar.gz cryptography-27f9ca663def6fdccd97297ef40c55923a43394a.tar.bz2 cryptography-27f9ca663def6fdccd97297ef40c55923a43394a.zip |
more docs
Diffstat (limited to 'docs/hazmat/primitives/interfaces.rst')
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 95fd6f9f..3b837a0d 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -133,6 +133,24 @@ Asymmetric interfaces :returns: :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricSignatureContext` + .. method:: decrypt(ciphertext, padding, backend) + + .. versionadded:: 0.4 + + Decrypt data that was encrypted via the public key. + + :param bytes ciphertext: The ciphertext to decrypt. + + :param padding: An instance of a + :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricPadding` + provider. + + :param backend: A + :class:`~cryptography.hazmat.backends.interfaces.RSABackend` + provider. + + :return bytes: Decrypted data. + .. method:: public_key() :return: :class:`~cryptography.hazmat.primitives.interfaces.RSAPublicKey` |