summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBarry Mead <barrymead@cox.net>2010-02-17 02:23:35 -0700
committerBarry Mead <barrymead@cox.net>2010-02-17 02:23:35 -0700
commit1bb49644927ce1c333c2f83e6b498b469c5ae80b (patch)
tree0db0c4a0be631ef760adc647cb8d72bb19c6f2e9
parent63d9caf1c22b51a44ac45104b6b29528671941eb (diff)
downloadrsa-1bb49644927ce1c333c2f83e6b498b469c5ae80b.tar.gz
Corrected comment about minimum nbits in newkeys
-rw-r--r--rsa/fastrsa.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/fastrsa.py b/rsa/fastrsa.py
index 529da0b..72bb055 100644
--- a/rsa/fastrsa.py
+++ b/rsa/fastrsa.py
@@ -391,7 +391,7 @@ def newkeys(nbits):
The public key consists of a dict {e: ..., n: ...}. The private
key consists of a dict {p: ..., q: ..., dp: ..., dq: ..., qi: ...}.
"""
- nbits = max(9,nbits) #Minimum key size is 9 bit for p and q
+ nbits = max(9,nbits) #Minimum key size is 9 bits for p and q
(p, q, e, dp, dq, qi) = gen_keys(nbits)
return ( {'e':e,'n':p*q}, {'p':p,'q':q,'dp':dp,'dq':dq,'qi':qi} )