Replace Encryptor CRTP base with a concept.
Chaos Ci / test (push) Successful in 5m6s
Chaos Ci / benchmark (push) Successful in 1m29s

This commit is contained in:
hashlag
2026-09-06 02:27:35 +03:00
parent f0228877b4
commit 2c6a24197a
3 changed files with 28 additions and 43 deletions
+3 -1
View File
@@ -233,7 +233,7 @@ public:
Inner_::RawKey Key_;
};
class Encryptor : public Chaos::Cipher::Block::Encryptor<Encryptor>
class Encryptor
{
public:
using Block = DesCrypt::Block;
@@ -279,6 +279,8 @@ public:
Inner_::KeySchedule Schedule_;
};
static_assert(Chaos::Cipher::Block::Encryptor<Encryptor>);
class Decryptor : public Chaos::Cipher::Block::Decryptor<Decryptor>
{
public: