aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-08-31 02:40:30 +0000
committerlloyd <[email protected]>2008-08-31 02:40:30 +0000
commitb0b513a03efbab7d5f4a2b92cb4b2e3768f40d33 (patch)
treeb15dfc042a98fd24b15c2795bf7de1d048d96eea /src
parent0ebbd31c3df8b5ef30c02393abfb48f0dc299e6b (diff)
Allow creating 512 bit RSA keys again (for benchmark, mostly)
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 7f2e15892..8faec9972 100644
--- a/src/rsa.cpp
+++ b/src/rsa.cpp
@@ -55,7 +55,7 @@ SecureVector<byte> RSA_PublicKey::verify(const byte in[], u32bit len) const
RSA_PrivateKey::RSA_PrivateKey(RandomNumberGenerator& rng,
u32bit bits, u32bit exp)
{
- if(bits < 1024)
+ if(bits < 512)
throw Invalid_Argument(algo_name() + ": Can't make a key that is only " +
to_string(bits) + " bits long");
if(exp < 3 || exp % 2 == 0)