Expose block sizes of block ciphers.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m45s

Both via static data members and Encryptor/Decryptor interfaces.
Crucial for safe memory allocation routine.
This commit is contained in:
hashlag
2026-01-31 19:26:51 +03:00
parent 8897d7a910
commit a97826da88
4 changed files with 65 additions and 34 deletions

View File

@@ -20,6 +20,11 @@ public:
return Impl().EncryptBlock(block);
}
auto GetBlockSize()
{
return Impl().GetBlockSize();
}
protected:
Encryptor() = default;