8#ifndef BOTAN_BLAKE2S_H_
9#define BOTAN_BLAKE2S_H_
11#include <botan/hash.h>
20 explicit BLAKE2s(
size_t output_bits = 256);
23 std::string
name()
const override;
29 std::unique_ptr<HashFunction>
copy_state()
const override;
31 std::unique_ptr<HashFunction>
new_object()
const override {
return std::make_unique<BLAKE2s>(m_outlen << 3); }
33 void clear()
override;
36 void add_data(std::span<const uint8_t>)
override;
37 void final_result(std::span<uint8_t>)
override;
38 void state_init(
size_t outlen,
const uint8_t* key,
size_t keylen);
39 void compress(
bool last);
std::unique_ptr< HashFunction > new_object() const override
std::unique_ptr< HashFunction > copy_state() const override
size_t hash_block_size() const override
BLAKE2s(size_t output_bits=256)
std::string name() const override
size_t output_length() const override
int(* final)(unsigned char *, CTX *)