Rename Hasher::BlockSizeBytes –> BlockSize.
Chaos Ci / test (push) Successful in 2m57s
Chaos Ci / benchmark (push) Successful in 1m24s

This commit is contained in:
hashlag committed 2026-09-13 00:51:20 +03:00
1 parent 6efa81f315
commit e328249a6d
5 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ concept Hasher = requires(T hasher, uint8_t * begin, uint8_t * end)
{
typename T::HashType;
requires std::unsigned_integral<std::remove_cvref_t<decltype(T::BlockSizeBytes)>>;
typename std::integral_constant<decltype(T::BlockSizeBytes), T::BlockSizeBytes>;
requires std::unsigned_integral<std::remove_cvref_t<decltype(T::BlockSize)>>;
typename std::integral_constant<decltype(T::BlockSize), T::BlockSize>;
hasher.Reset();
hasher.Update(begin, end);
+1 -1
View File
@@ -168,7 +168,7 @@ class Md4Hasher
public:
using HashType = Md4Hash;
static constexpr size_t BlockSizeBytes = 64;
static constexpr size_t BlockSize = 64;
Md4Hasher()
{
+1 -1
View File
@@ -192,7 +192,7 @@ class Md5Hasher
public:
using HashType = Md5Hash;
static constexpr size_t BlockSizeBytes = 64;
static constexpr size_t BlockSize = 64;
Md5Hasher()
{
+1 -1
View File
@@ -162,7 +162,7 @@ class Sha1Hasher
public:
using HashType = Sha1Hash;
static constexpr size_t BlockSizeBytes = 64;
static constexpr size_t BlockSize = 64;
Sha1Hasher()
{