diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-24 12:07:54 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-24 16:41:44 -0500 |
commit | 4e602f383aa7ee7e43b344e805d92f9626f4a8c7 (patch) | |
tree | 15356eb07291b80e92edd79ebe5da023306a0336 /docs/hazmat/primitives/interfaces.rst | |
parent | dcf63ab6bcee9d5a4ae837186db8f0804ddca62c (diff) | |
download | cryptography-4e602f383aa7ee7e43b344e805d92f9626f4a8c7.tar.gz cryptography-4e602f383aa7ee7e43b344e805d92f9626f4a8c7.tar.bz2 cryptography-4e602f383aa7ee7e43b344e805d92f9626f4a8c7.zip |
RSA encryption support
Diffstat (limited to 'docs/hazmat/primitives/interfaces.rst')
-rw-r--r-- | docs/hazmat/primitives/interfaces.rst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/hazmat/primitives/interfaces.rst b/docs/hazmat/primitives/interfaces.rst index 3b837a0d..c76582c0 100644 --- a/docs/hazmat/primitives/interfaces.rst +++ b/docs/hazmat/primitives/interfaces.rst @@ -263,6 +263,23 @@ Asymmetric interfaces :returns: :class:`~cryptography.hazmat.primitives.interfaces.AsymmetricVerificationContext` + .. method:: encrypt(plaintext, padding, backend) + + .. versionadded:: 0.4 + + Encrypt data with the public key. + + :param bytes plaintext: The plaintext to encrypt. + + :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: Encrypted data. .. attribute:: modulus |