aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlloyd <[email protected]>2006-12-08 20:48:47 +0000
committerlloyd <[email protected]>2006-12-08 20:48:47 +0000
commit545c5de21bcf455e2e1ca97b69b1ddd41a29ad34 (patch)
tree3fc92bff53af1f62d640054137ac69f237e740f8
parenta8088560d1831f82a6fa39083aab8075a22a65b0 (diff)
Allow the creation of 48 bit primes
-rw-r--r--src/make_prm.cpp2
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");