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/constructs/srp6 | |
parent | fd3016d10124d2b7ccd7bc885235f2e407d73800 (diff) |
Add missing files. Remove cipher lookup from engine code.
Diffstat (limited to 'src/lib/constructs/srp6')
-rw-r--r-- | src/lib/constructs/srp6/srp6.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/constructs/srp6/srp6.cpp b/src/lib/constructs/srp6/srp6.cpp index c3bf3e19a..d3f7338bd 100644 --- a/src/lib/constructs/srp6/srp6.cpp +++ b/src/lib/constructs/srp6/srp6.cpp @@ -7,8 +7,8 @@ #include <botan/srp6.h> #include <botan/dl_group.h> -#include <botan/libstate.h> #include <botan/numthry.h> +#include <botan/lookup.h> namespace Botan { @@ -19,8 +19,7 @@ BigInt hash_seq(const std::string& hash_id, const BigInt& in1, const BigInt& in2) { - std::unique_ptr<HashFunction> hash_fn( - global_state().algorithm_factory().make_hash_function(hash_id)); + std::unique_ptr<HashFunction> hash_fn(get_hash(hash_id)); hash_fn->update(BigInt::encode_1363(in1, pad_to)); hash_fn->update(BigInt::encode_1363(in2, pad_to)); @@ -33,8 +32,7 @@ BigInt compute_x(const std::string& hash_id, const std::string& password, const std::vector<byte>& salt) { - std::unique_ptr<HashFunction> hash_fn( - global_state().algorithm_factory().make_hash_function(hash_id)); + std::unique_ptr<HashFunction> hash_fn(get_hash(hash_id)); hash_fn->update(identifier); hash_fn->update(":"); |