diff options
author | lloyd <[email protected]> | 2006-12-08 20:48:47 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2006-12-08 20:48:47 +0000 |
commit | 545c5de21bcf455e2e1ca97b69b1ddd41a29ad34 (patch) | |
tree | 3fc92bff53af1f62d640054137ac69f237e740f8 /src | |
parent | a8088560d1831f82a6fa39083aab8075a22a65b0 (diff) |
Allow the creation of 48 bit primes
Diffstat (limited to 'src')
-rw-r--r-- | src/make_prm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/make_prm.cpp b/src/make_prm.cpp index 2874cb365..c7461c411 100644 --- a/src/make_prm.cpp +++ b/src/make_prm.cpp @@ -111,7 +111,7 @@ SecureVector<byte> generate_dsa_primes(BigInt& p, BigInt& q, u32bit pbits) BigInt random_prime(u32bit bits, const BigInt& coprime, u32bit equiv, u32bit modulo) { - if(bits <= 48) + if(bits < 48) throw Invalid_Argument("random_prime: Can't make a prime of " + to_string(bits) + " bits"); |