Standartize block cipher's inner encryptor/decryptor class names.
Chaos Ci / test-and-benchmark (push) Successful in 2m43s

This commit is contained in:
hashlag
2026-06-22 02:02:44 +03:00
parent aafe22106e
commit 6c5a12f339
2 changed files with 22 additions and 22 deletions
+4 -4
View File
@@ -230,14 +230,14 @@ public:
Inner_::RawKey Key_;
};
class DesEncryptor : public Encryptor<DesEncryptor>
class Encryptor : public Chaos::Cipher::Block::Encryptor<Encryptor>
{
public:
using Key = DesCrypt::Key;
static constexpr size_t BlockSize = DesCrypt::BlockSize;
static constexpr size_t KeySize = DesCrypt::KeySize;
DesEncryptor(const Key & key)
Encryptor(const Key & key)
: Schedule_(Inner_::KeySchedule::Direction::Encrypt, key.Key_)
{ }
@@ -275,14 +275,14 @@ public:
Inner_::KeySchedule Schedule_;
};
class DesDecryptor : public Decryptor<DesDecryptor>
class Decryptor : public Chaos::Cipher::Block::Decryptor<Decryptor>
{
public:
using Key = DesCrypt::Key;
static constexpr size_t BlockSize = DesCrypt::BlockSize;
static constexpr size_t KeySize = DesCrypt::KeySize;
DesDecryptor(const Key & key)
Decryptor(const Key & key)
: Schedule_(Inner_::KeySchedule::Direction::Decrypt, key.Key_)
{ }