diff options
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(":"); |