diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-06 17:43:49 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-06-06 17:43:49 -0500 |
commit | d50c1e92ac789d8912f257350fe3861fce9d1095 (patch) | |
tree | bceb31f10d132516c09bc3a12514118a3f9a57cd /docs | |
parent | f1de2f78cfd2b19eb4e2485ff36008581b088292 (diff) | |
download | cryptography-d50c1e92ac789d8912f257350fe3861fce9d1095.tar.gz cryptography-d50c1e92ac789d8912f257350fe3861fce9d1095.tar.bz2 cryptography-d50c1e92ac789d8912f257350fe3861fce9d1095.zip |
add rsa_generate_private_key function to replace RSAPrivateKey.generate
refs #1026. #1101 is dependent on this
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/rsa.rst | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index 54839119..ff9b0a7b 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -7,13 +7,22 @@ RSA `RSA`_ is a `public-key`_ algorithm for encrypting and signing messages. + +.. function:: generate_rsa_private_key(public_exponent, key_size, backend) + + .. versionadded:: 0.5 + + Generate a provider of + :class:`~cryptography.hazmat.primitives.interfaces.RSAPrivateKey` + using ``backend``. + .. class:: RSAPrivateKey(p, q, private_exponent, dmp1, dmq1, iqmp, public_exponent, modulus) .. versionadded:: 0.2 An RSA private key is required for decryption and signing of messages. - You should use :meth:`~generate` to generate new keys. + You should use :func:`generate_rsa_private_key` to generate new keys. .. warning:: This method only checks a limited set of properties of its arguments. |