Introduce Block::Encryptor<> CRTP base class.

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

No files matched your search

+3 -1
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)