diff options
author | lloyd <[email protected]> | 2008-11-11 00:00:10 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-11-11 00:00:10 +0000 |
commit | 894a225d14043cbd0cbd42c677ab4063b461fa24 (patch) | |
tree | d86973c4bc9bcddf4ac1970728479bf04e8f6522 /src/math/numbertheory/dsa_gen.cpp | |
parent | e6abb0fd8289619d559ff430dff84f0de4f82808 (diff) |
Remove lookup.h use from DLIES, PK key agreement, DSA param gen, get_enc.cpp
Diffstat (limited to 'src/math/numbertheory/dsa_gen.cpp')
-rw-r--r-- | src/math/numbertheory/dsa_gen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/math/numbertheory/dsa_gen.cpp b/src/math/numbertheory/dsa_gen.cpp index 14f62dab3..6f4a7cefa 100644 --- a/src/math/numbertheory/dsa_gen.cpp +++ b/src/math/numbertheory/dsa_gen.cpp @@ -4,7 +4,8 @@ *************************************************/ #include <botan/numthry.h> -#include <botan/lookup.h> +#include <botan/libstate.h> +#include <botan/hash.h> #include <botan/parsing.h> #include <algorithm> #include <memory> @@ -50,7 +51,10 @@ bool generate_dsa_primes(RandomNumberGenerator& rng, "Generating a DSA parameter set with a " + to_string(qbits) + "long q requires a seed at least as many bits long"); - std::auto_ptr<HashFunction> hash(get_hash("SHA-" + to_string(qbits))); + Algorithm_Factory& af = global_state().algo_factory(); + + std::auto_ptr<HashFunction> hash( + af.make_hash_function("SHA-" + to_string(qbits))); const u32bit HASH_SIZE = hash->OUTPUT_LENGTH; |