9#ifndef BOTAN_TRUNCATED_HASH_H_
10#define BOTAN_TRUNCATED_HASH_H_
12#include <botan/hash.h>
25 void clear()
override;
26 std::string
name()
const override;
27 std::unique_ptr<HashFunction>
new_object()
const override;
28 std::unique_ptr<HashFunction>
copy_state()
const override;
39 void add_data(std::span<const uint8_t>)
override;
40 void final_result(std::span<uint8_t>)
override;
42 std::unique_ptr<HashFunction> m_hash;
Truncated_Hash(std::unique_ptr< HashFunction > hash, size_t length)
size_t output_length() const override
std::string name() const override
std::unique_ptr< HashFunction > new_object() const override
std::unique_ptr< HashFunction > copy_state() const override
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector