Replace Encryptor CRTP base with a concept.
This commit is contained in:
1 parent
f0228877b4
commit
2c6a24197a
3 files changed
+28
-43
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user