diff options
author | lloyd <[email protected]> | 2008-09-02 05:51:23 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-02 05:51:23 +0000 |
commit | 8646377993e3724605f3c147606d6cfd2a7a1cfb (patch) | |
tree | d9d60f44b0338f93720094df0fd7aae43a09e421 /src | |
parent | 4602c3cbed029bbdda399b40ff3b1e9675fa2ff4 (diff) |
Reduce RW creation min also to 512 for benchmarks
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) |