aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey
diff options
context:
space:
mode:
authorlloyd <[email protected]>2015-02-01 23:46:07 +0000
committerlloyd <[email protected]>2015-02-01 23:46:07 +0000
commit69d2cd919c698a6b138b2ccba0de5d5aa2a33a03 (patch)
tree1386c3a1524717a21997804a76219093c3790218 /src/lib/pubkey
parentfd3016d10124d2b7ccd7bc885235f2e407d73800 (diff)
Add missing files. Remove cipher lookup from engine code.
Diffstat (limited to 'src/lib/pubkey')
-rw-r--r--src/lib/pubkey/dl_group/dl_group.cpp10
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");