17 std::vector<
byte>
Encrypt(const std::
string& password, const
byte *buffer, const std::
size_t buffSize) override;
18 std::vector<
byte>
Encrypt(const std::
string& password, const std::vector<
byte>& buffer) override;
19 std::vector<
byte>
Decrypt(const std::
string& password, const
byte *cipher, const std::
size_t cipherSize) override;
20 std::vector<
byte>
Decrypt(const std::
string& password, const std::vector<
byte>& cipher) override;
21 void Encrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
22 void Decrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
25 std::unique_ptr<CryptoPP::GCM<CryptoPP::
Twofish>::
Encryption> m_twofish_encryptor;
26 std::unique_ptr<CryptoPP::GCM<CryptoPP::
Twofish>::Decryption> m_twofish_decryptor;
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Algorithm abstract class.
std::vector< byte > Encrypt(const std::string &password, const byte *buffer, const std::size_t buffSize) override
~Twofish() noexcept override
Twofish(const Algorithm::Intent intent) noexcept
std::vector< byte > Decrypt(const std::string &password, const byte *cipher, const std::size_t cipherSize) override