diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-23 19:26:05 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-02-23 19:26:05 -0600 |
commit | 8dd9713ae2a69a3e870275c088df08ce2a50dce9 (patch) | |
tree | f78d3bac777b4eec64ecd8d841f93c7aa5355a1b /docs/hazmat | |
parent | 160e51a207db264c48162b02e22005356100a396 (diff) | |
download | cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.tar.gz cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.tar.bz2 cryptography-8dd9713ae2a69a3e870275c088df08ce2a50dce9.zip |
incorporate review feedback. kwarg!
Diffstat (limited to 'docs/hazmat')
-rw-r--r-- | docs/hazmat/primitives/asymmetric/rsa.rst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/hazmat/primitives/asymmetric/rsa.rst b/docs/hazmat/primitives/asymmetric/rsa.rst index 82cf3528..5e71c7c8 100644 --- a/docs/hazmat/primitives/asymmetric/rsa.rst +++ b/docs/hazmat/primitives/asymmetric/rsa.rst @@ -74,7 +74,11 @@ RSA >>> from cryptography.hazmat.backends import default_backend >>> from cryptography.hazmat.primitives import hashes >>> from cryptography.hazmat.primitives.asymmetric import rsa, padding - >>> private_key = rsa.RSAPrivateKey.generate(65537, 2048, default_backend()) + >>> private_key = rsa.RSAPrivateKey.generate( + ... public_exponent=65537, + ... key_size=2048, + ... backend=default_backend() + ... ) >>> signer = private_key.signer(padding.PKCS1(), hashes.SHA256(), default_backend()) >>> signer.update(b"this is some data I'd like") >>> signer.update(b" to sign") |