Introduce Block::Encryptor<> CRTP base class.

Inherit DesEncryptor from it.
This commit is contained in:
hashlag
2026-01-31 18:12:43 +03:00
parent ba70abd2af
commit 4cf79b61ad
3 changed files with 86 additions and 1 deletions

View File

@@ -7,6 +7,8 @@
#include "Service/ChaosException.hpp"
#include "Service/SeArray.hpp"
#include "Cipher/Block/Encryptor.hpp"
namespace Chaos::Cipher::Block::Des::Inner_
{
@@ -221,7 +223,7 @@ public:
Inner_::RawKey Key_;
};
class DesEncryptor
class DesEncryptor : public Encryptor<DesEncryptor>
{
public:
DesEncryptor(const Key & key)