diff options
author | lloyd <[email protected]> | 2008-08-31 02:40:30 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-08-31 02:40:30 +0000 |
commit | b0b513a03efbab7d5f4a2b92cb4b2e3768f40d33 (patch) | |
tree | b15dfc042a98fd24b15c2795bf7de1d048d96eea /src/rsa.cpp | |
parent | 0ebbd31c3df8b5ef30c02393abfb48f0dc299e6b (diff) |
Allow creating 512 bit RSA keys again (for benchmark, mostly)
Diffstat (limited to 'src/rsa.cpp')
-rw-r--r-- | src/rsa.cpp | 2 |
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) |