Botan 3.5.0
Crypto and TLS for C&
Botan::md_hash_implementation Concept Reference

#include <mdx_hash.h>

Concept definition

template<typename T>
requires(typename T::digest_type& digest, std::span<const uint8_t> input, size_t blocks) {
{ T::init(digest) } -> std::same_as<void>;
{ T::compress_n(digest, input, blocks) } -> std::same_as<void>;
T::bit_endianness;
T::byte_endianness;
T::block_bytes;
T::output_bytes;
T::ctr_bytes;
} && T::block_bytes >= 64 && is_power_of_2(T::block_bytes) && T::output_bytes >= 16 && T::ctr_bytes >= 8 &&
is_power_of_2(T::ctr_bytes) && T::ctr_bytes < T::block_bytes
constexpr bool is_power_of_2(T arg)
Definition bit_ops.h:45

Detailed Description

Definition at line 26 of file mdx_hash.h.