diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-26 22:10:34 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-26 22:10:34 -0700 |
commit | db1524b8db4959f25c880f871ea0d2ddb137ec58 (patch) | |
tree | c9df839f820b8a09ef4394d3ff3b894af46d2dd0 /docs/hazmat/primitives/interfaces.rst | |
parent | b30402c6b5ad6aa3625fcfbd9e7cb7998670d2f4 (diff) | |
parent | 857c0e9c18206c35958a4ad573e7c36a743daabd (diff) | |
download | cryptography-db1524b8db4959f25c880f871ea0d2ddb137ec58.tar.gz cryptography-db1524b8db4959f25c880f871ea0d2ddb137ec58.tar.bz2 cryptography-db1524b8db4959f25c880f871ea0d2ddb137ec58.zip |
Merge pull request #962 from reaperhulk/rsa-enc
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 |