3#include <StormByte/crypto/hasher/generic.hxx>
9namespace StormByte::Crypto::Hasher {
58 inline PointerType Clone() const noexcept
override {
59 return std::make_shared<Blake2s>(*
this);
66 inline PointerType
Move() noexcept
override {
67 return std::make_shared<Blake2s>(std::move(*
this));
78 bool DoHash(std::span<const std::byte> input, Buffer::WriteOnly& output)
const noexcept override;
86 Buffer::Consumer DoHash(Buffer::Consumer consumer, ReadMode mode)
const noexcept override;
A Blake2s hasher class.
Definition blake2s.hxx:14
PointerType Move() noexcept override
Move the Blake2s hasher.
Definition blake2s.hxx:66
~Blake2s() noexcept=default
Virtual destructor.
Blake2s(const Blake2s &other)=default
Copy constructor.
Blake2s()
Constructor.
Definition blake2s.hxx:20
Blake2s(Blake2s &&other) noexcept=default
Move constructor.
A generic hasher class.
Definition generic.hxx:30