Compare commits

...

2 Commits

Author SHA1 Message Date
hashlag
0647a7c3dc DesEncryptor/DesDecryptor: expose key type.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m57s
2026-02-08 02:57:00 +03:00
hashlag
7c86d704b7 Merge branch 'block-expose-key-size'
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m54s
Expose block ciphers' key sizes for usage in compile-time context.
2026-02-07 18:14:09 +03:00

View File

@@ -233,6 +233,7 @@ public:
class DesEncryptor : public Encryptor<DesEncryptor>
{
public:
using Key = DesCrypt::Key;
static constexpr size_t BlockSize = DesCrypt::BlockSize;
static constexpr size_t KeySize = DesCrypt::KeySize;
@@ -277,6 +278,7 @@ public:
class DesDecryptor : public Decryptor<DesDecryptor>
{
public:
using Key = DesCrypt::Key;
static constexpr size_t BlockSize = DesCrypt::BlockSize;
static constexpr size_t KeySize = DesCrypt::KeySize;