summaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2011-12-04 01:02:22 -0500
committerDwayne C. Litzenberger <dlitz@dlitz.net>2011-12-04 01:02:22 -0500
commit6fedd15136e8de6a98c46cd1d92c6e6cf2790fae (patch)
treed3450cea10731f3c649732354ce1b0e45ed90f7a /Doc
parentd2170a4080b744de25f5586c3c6f1667963c8119 (diff)
downloadpycrypto-6fedd15136e8de6a98c46cd1d92c6e6cf2790fae.tar.gz
Don't suggest the use of 384-bit RSA keys (!) in the docs.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/pycrypt.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/pycrypt.rst b/Doc/pycrypt.rst
index 02234af..5551071 100644
--- a/Doc/pycrypt.rst
+++ b/Doc/pycrypt.rst
@@ -692,7 +692,7 @@ An example of using the RSA module to sign a message::
>>> from Crypto.PublicKey import RSA
>>> from Crypto import Random
>>> rng = Random.new().read
- >>> RSAkey = RSA.generate(384, rng) # This will take a while...
+ >>> RSAkey = RSA.generate(2048, rng) # This will take a while...
>>> hash = MD5.new(plaintext).digest()
>>> signature = RSAkey.sign(hash, rng)
>>> signature # Print what an RSA sig looks like--you don't really care.