aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/dl_group
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-05-21 17:51:59 -0400
committerJack Lloyd <[email protected]>2018-05-21 17:51:59 -0400
commitac7354da6788e31a77af6908f289a0724363da84 (patch)
tree69893274a332097df6a57137519fe3ac2bf78c5b /src/lib/pubkey/dl_group
parente37b58c1099d909a26060120512537938fdc4287 (diff)
Use smaller error bound when generating subgroups-style DL groups
Diffstat (limited to 'src/lib/pubkey/dl_group')
-rw-r--r--src/lib/pubkey/dl_group/dl_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pubkey/dl_group/dl_group.cpp b/src/lib/pubkey/dl_group/dl_group.cpp
index e3c7ac65b..9bab123cb 100644
--- a/src/lib/pubkey/dl_group/dl_group.cpp
+++ b/src/lib/pubkey/dl_group/dl_group.cpp
@@ -240,7 +240,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng,
Modular_Reducer mod_2q(2*q);
BigInt X;
BigInt p;
- while(p.bits() != pbits || !is_prime(p, rng))
+ while(p.bits() != pbits || !is_prime(p, rng, 128, true))
{
X.randomize(rng, pbits);
p = X - mod_2q.reduce(X) + 1;