diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rw.cpp b/src/rw.cpp index 4cbed6097..39cbcdd6e 100644 --- a/src/rw.cpp +++ b/src/rw.cpp @@ -55,7 +55,7 @@ SecureVector<byte> RW_PublicKey::verify(const byte in[], u32bit len) const RW_PrivateKey::RW_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 < 2 || exp % 2 == 1) |