diff options
author | lloyd <[email protected]> | 2015-02-01 23:46:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2015-02-01 23:46:07 +0000 |
commit | 69d2cd919c698a6b138b2ccba0de5d5aa2a33a03 (patch) | |
tree | 1386c3a1524717a21997804a76219093c3790218 /src/lib/pubkey/dl_group/dl_group.cpp | |
parent | fd3016d10124d2b7ccd7bc885235f2e407d73800 (diff) |
Add missing files. Remove cipher lookup from engine code.
Diffstat (limited to 'src/lib/pubkey/dl_group/dl_group.cpp')
-rw-r--r-- | src/lib/pubkey/dl_group/dl_group.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/lib/pubkey/dl_group/dl_group.cpp b/src/lib/pubkey/dl_group/dl_group.cpp index 5cb5feae9..c519dcb99 100644 --- a/src/lib/pubkey/dl_group/dl_group.cpp +++ b/src/lib/pubkey/dl_group/dl_group.cpp @@ -6,7 +6,6 @@ */ #include <botan/dl_group.h> -#include <botan/libstate.h> #include <botan/parsing.h> #include <botan/numthry.h> #include <botan/der_enc.h> @@ -72,10 +71,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, { qbits = qbits ? qbits : ((pbits <= 1024) ? 160 : 256); - generate_dsa_primes(rng, - global_state().algorithm_factory(), - p, q, - pbits, qbits); + generate_dsa_primes(rng, p, q, pbits, qbits); g = make_dsa_generator(p, q); } @@ -90,9 +86,7 @@ DL_Group::DL_Group(RandomNumberGenerator& rng, const std::vector<byte>& seed, size_t pbits, size_t qbits) { - if(!generate_dsa_primes(rng, - global_state().algorithm_factory(), - p, q, pbits, qbits, seed)) + if(!generate_dsa_primes(rng, p, q, pbits, qbits, seed)) throw Invalid_Argument("DL_Group: The seed given does not " "generate a DSA group"); |