8 #ifndef BOTAN_HASH_FUNCTION_BASE_CLASS_H__
9 #define BOTAN_HASH_FUNCTION_BASE_CLASS_H__
11 #include <botan/buf_comp.h>
27 static std::unique_ptr<HashFunction>
28 create(
const std::string& algo_spec,
29 const std::string& provider =
"");
38 static std::unique_ptr<HashFunction>
39 create_or_throw(
const std::string& algo_spec,
40 const std::string& provider =
"");
46 static std::vector<std::string> providers(
const std::string& algo_spec);
57 virtual std::string
provider()
const {
return "base"; }
64 virtual void clear() = 0;
69 virtual std::string name()
const = 0;
virtual std::string provider() const
virtual size_t hash_block_size() const