From 97aeb229ad92a430c77caeb295242bf4b2d5ff33 Mon Sep 17 00:00:00 2001 From: hashlag Date: Sat, 12 Sep 2026 02:49:12 +0300 Subject: [PATCH] Update concept Hasher: require T::BLOCK_SIZE_BYTES. --- Chaos/Hash/Hasher.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Chaos/Hash/Hasher.hpp b/Chaos/Hash/Hasher.hpp index 57f9944..4b30dd6 100644 --- a/Chaos/Hash/Hasher.hpp +++ b/Chaos/Hash/Hasher.hpp @@ -1,7 +1,9 @@ #ifndef CHAOS_HASH_HASHER_HPP #define CHAOS_HASH_HASHER_HPP +#include #include +#include #include "Hash.hpp" @@ -12,6 +14,7 @@ template concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end) { typename T::HashType; + requires std::unsigned_integral>; hasher.Reset(); hasher.Update(begin, end); { hasher.Finish() } -> Hash;