diff options
Diffstat (limited to 'src/pubkey/dl_group/dl_group.cpp')
-rw-r--r-- | src/pubkey/dl_group/dl_group.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pubkey/dl_group/dl_group.cpp b/src/pubkey/dl_group/dl_group.cpp index b37bc238c..d97c86e38 100644 --- a/src/pubkey/dl_group/dl_group.cpp +++ b/src/pubkey/dl_group/dl_group.cpp @@ -71,7 +71,9 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, else { qbits = qbits ? qbits : ((pbits == 1024) ? 160 : 256); - generate_dsa_primes(rng, p, q, pbits, qbits); + generate_dsa_primes(rng, + global_state().algorithm_factory(), + p, q, pbits, qbits); } g = make_dsa_generator(p, q); @@ -86,7 +88,9 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, DL_Group::DL_Group(RandomNumberGenerator& rng, const MemoryRegion<byte>& seed, u32bit pbits, u32bit qbits) { - if(!generate_dsa_primes(rng, p, q, pbits, qbits, seed)) + if(!generate_dsa_primes(rng, + global_state().algorithm_factory(), + p, q, pbits, qbits, seed)) throw Invalid_Argument("DL_Group: The seed given does not " "generate a DSA group"); |