11#include <botan/internal/mdx_hash.h>
32 std::string
name()
const override {
return "SM3"; }
38 std::unique_ptr<HashFunction>
new_object()
const override;
40 std::unique_ptr<HashFunction>
copy_state()
const override;
42 void clear()
override { m_md.clear(); }
45 void add_data(std::span<const uint8_t> input)
override;
47 void final_result(std::span<uint8_t> output)
override;
std::unique_ptr< HashFunction > copy_state() const override
size_t hash_block_size() const override
static constexpr MD_Endian byte_endianness
std::string name() const override
std::unique_ptr< HashFunction > new_object() const override
static constexpr MD_Endian bit_endianness
size_t output_length() const override
secure_vector< uint32_t > digest_type
static constexpr size_t block_bytes
static void compress_n(digest_type &digest, std::span< const uint8_t > input, size_t blocks)
static constexpr size_t output_bytes
static constexpr size_t ctr_bytes
int(* final)(unsigned char *, CTX *)
std::vector< T, secure_allocator< T > > secure_vector