From 6efa81f315838edd3f7fc06b2e49c7d03580d203 Mon Sep 17 00:00:00 2001 From: hashlag Date: Sun, 13 Sep 2026 00:45:39 +0300 Subject: [PATCH] Rename Hasher::BLOCK_SIZE_BYTES --> BlockSizeBytes. --- Chaos/Hash/Hasher.hpp | 4 ++-- Chaos/Hash/Md4.hpp | 2 +- Chaos/Hash/Md5.hpp | 2 +- Chaos/Hash/Sha1.hpp | 2 +- Chaos/Mac/Hmac.hpp | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Chaos/Hash/Hasher.hpp b/Chaos/Hash/Hasher.hpp index 7055828..c3e651d 100644 --- a/Chaos/Hash/Hasher.hpp +++ b/Chaos/Hash/Hasher.hpp @@ -15,8 +15,8 @@ concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end) { typename T::HashType; - requires std::unsigned_integral>; - typename std::integral_constant; + requires std::unsigned_integral>; + typename std::integral_constant; hasher.Reset(); hasher.Update(begin, end); diff --git a/Chaos/Hash/Md4.hpp b/Chaos/Hash/Md4.hpp index e78dec3..64cd849 100644 --- a/Chaos/Hash/Md4.hpp +++ b/Chaos/Hash/Md4.hpp @@ -168,7 +168,7 @@ class Md4Hasher public: using HashType = Md4Hash; - static constexpr size_t BLOCK_SIZE_BYTES = 64; + static constexpr size_t BlockSizeBytes = 64; Md4Hasher() { diff --git a/Chaos/Hash/Md5.hpp b/Chaos/Hash/Md5.hpp index cb1be91..59a8b12 100644 --- a/Chaos/Hash/Md5.hpp +++ b/Chaos/Hash/Md5.hpp @@ -192,7 +192,7 @@ class Md5Hasher public: using HashType = Md5Hash; - static constexpr size_t BLOCK_SIZE_BYTES = 64; + static constexpr size_t BlockSizeBytes = 64; Md5Hasher() { diff --git a/Chaos/Hash/Sha1.hpp b/Chaos/Hash/Sha1.hpp index ad743d8..799ef3e 100644 --- a/Chaos/Hash/Sha1.hpp +++ b/Chaos/Hash/Sha1.hpp @@ -162,7 +162,7 @@ class Sha1Hasher public: using HashType = Sha1Hash; - static constexpr size_t BLOCK_SIZE_BYTES = 64; + static constexpr size_t BlockSizeBytes = 64; Sha1Hasher() { diff --git a/Chaos/Mac/Hmac.hpp b/Chaos/Mac/Hmac.hpp index 82ecc7e..2c403db 100644 --- a/Chaos/Mac/Hmac.hpp +++ b/Chaos/Mac/Hmac.hpp @@ -53,7 +53,7 @@ public: } private: - using KeyType = std::array; + using KeyType = std::array; static constexpr uint8_t OPAD_BYTE = 0x5c; static constexpr uint8_t IPAD_BYTE = 0x36; @@ -94,7 +94,7 @@ private: keyHasher.Update(keyIt, keyEnd); auto digest = keyHasher.Finish().GetRawDigest(); - static_assert(digest.size() <= HasherImpl::BLOCK_SIZE_BYTES); + static_assert(digest.size() <= HasherImpl::BlockSizeBytes); key.fill(0); idx = 0;