Introduce Block::Decryptor<> CRTP base class.
All checks were successful
Chaos Ci / test-and-benchmark (push) Successful in 1m43s

Inherit DesDecryptor from it.
This commit is contained in:
hashlag
2026-01-31 18:35:23 +03:00
parent 4cf79b61ad
commit 73c455901b
3 changed files with 83 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
#include "Service/SeArray.hpp"
#include "Cipher/Block/Encryptor.hpp"
#include "Cipher/Block/Decryptor.hpp"
namespace Chaos::Cipher::Block::Des::Inner_
{
@@ -258,7 +259,7 @@ public:
Inner_::KeySchedule Schedule_;
};
class DesDecryptor
class DesDecryptor : public Decryptor<DesDecryptor>
{
public:
DesDecryptor(const Key & key)