aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-05-24 17:14:33 +0000
committerlloyd <[email protected]>2008-05-24 17:14:33 +0000
commita6a9110d02925e111cff2dc1143a09a3b7680f0b (patch)
treec2fa2ff937314732912be4843d2d6eaf7cdac178 /src
parentb8768fa4372eaeb0b816db7bc55813261bc35c2a (diff)
Policy change: No RSA key generation smaller than 1024 bits. Had been 128
Diffstat (limited to 'src')
-rw-r--r--src/rsa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rsa.cpp b/src/rsa.cpp
index 743b1beb5..6ddcd2415 100644
--- a/src/rsa.cpp
+++ b/src/rsa.cpp
@@ -53,7 +53,7 @@ SecureVector<byte> RSA_PublicKey::verify(const byte in[], u32bit len) const
*************************************************/
RSA_PrivateKey::RSA_PrivateKey(u32bit bits, u32bit exp)
{
- if(bits < 128)
+ if(bits < 1024)
throw Invalid_Argument(algo_name() + ": Can't make a key that is only " +
to_string(bits) + " bits long");
if(exp < 3 || exp % 2 == 0)