aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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)