From 643c1364c7c2ba34aeccc85c36c58097c14234c9 Mon Sep 17 00:00:00 2001 From: hashlag Date: Sun, 18 Oct 2026 01:36:02 +0300 Subject: [PATCH] EcbMode:Encryptor: delete move,copy * constructor,operator. --- Chaos/Cipher/Block/Mode/Ecb.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Chaos/Cipher/Block/Mode/Ecb.hpp b/Chaos/Cipher/Block/Mode/Ecb.hpp index 95d004e..07e19c4 100644 --- a/Chaos/Cipher/Block/Mode/Ecb.hpp +++ b/Chaos/Cipher/Block/Mode/Ecb.hpp @@ -30,6 +30,12 @@ public: class Encryptor { public: + Encryptor(const Encryptor & other) = delete; + Encryptor(Encryptor && other) = delete; + + Encryptor & operator=(const Encryptor & other) = delete; + Encryptor & operator=(Encryptor && other) = delete; + Encryptor(const typename CipherT::Key & key) : Encryptor_(key) , BlockBytesPacked_(0)