From 4e28752614a2c1dcd7a62b5e77f42e582b670e2a Mon Sep 17 00:00:00 2001 From: hashlag Date: Sat, 12 Sep 2026 02:58:05 +0300 Subject: [PATCH] Update concept Encryptor: require T::BlockSize and T::KeySize to be constant expressions. --- Chaos/Cipher/Block/Encryptor.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Chaos/Cipher/Block/Encryptor.hpp b/Chaos/Cipher/Block/Encryptor.hpp index 13626dc..8150c91 100644 --- a/Chaos/Cipher/Block/Encryptor.hpp +++ b/Chaos/Cipher/Block/Encryptor.hpp @@ -18,7 +18,9 @@ concept Encryptor = requires(const T constEncryptor, typename T::Key; requires std::constructible_from; requires std::unsigned_integral>; + typename std::integral_constant; requires std::unsigned_integral>; + typename std::integral_constant; constEncryptor.EncryptBlock(outBegin, outEnd, inBegin, inEnd); { constEncryptor.EncryptBlock(block) } -> std::same_as; { constEncryptor.GetBlockSize() } -> std::unsigned_integral;