7#ifndef BOTAN_RAW_HASH_FN_H_
8#define BOTAN_RAW_HASH_FN_H_
10#include <botan/hash.h>
29 void add_data(std::span<const uint8_t> input)
override;
33 void clear()
override;
35 std::unique_ptr<HashFunction>
copy_state()
const override;
37 std::unique_ptr<HashFunction>
new_object()
const override;
41 std::string
name()
const override {
return m_name; }
44 const std::string m_name;
45 const size_t m_output_length;
46 std::vector<uint8_t> m_bits;
void final_result(std::span< uint8_t > out) override
std::unique_ptr< HashFunction > copy_state() const override
void add_data(std::span< const uint8_t > input) override
std::unique_ptr< HashFunction > new_object() const override
std::string name() const override
RawHashFunction(std::unique_ptr< HashFunction > hash)
size_t output_length() const override
RawHashFunction(std::string_view name, size_t output_length)