Mark all Block::Decryptor<> methods const.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m42s

This allows for convenient usage of const Decryptor<Impl> &.
This commit is contained in:
hashlag
2026-02-01 00:24:50 +03:00
parent cdcab2f4f7
commit d194fef1af
3 changed files with 8 additions and 8 deletions

View File

@@ -541,7 +541,7 @@ TEST(DesCryptTests, EncryptUInt64BlockThroughBaseTest)
}
template<typename Impl, typename InputIt>
static std::vector<uint8_t> DecryptThroughBase(Decryptor<Impl> & dec,
static std::vector<uint8_t> DecryptThroughBase(const Decryptor<Impl> & dec,
InputIt begin, InputIt end)
{
std::vector<uint8_t> result;
@@ -565,7 +565,7 @@ TEST(DesCryptTests, DecryptThroughBaseTest)
}
template<typename Impl>
static uint64_t DecryptUInt64BlockThroughBase(Decryptor<Impl> & dec, uint64_t block)
static uint64_t DecryptUInt64BlockThroughBase(const Decryptor<Impl> & dec, uint64_t block)
{
return dec.DecryptBlock(block);
}