19 std::vector<
byte>
Encrypt(const std::
string& password, const
byte *buffer, const std::
size_t buffSize) override;
20 std::vector<
byte>
Encrypt(const std::
string& password, const std::vector<
byte>& buffer) override;
21 std::vector<
byte>
Decrypt(const std::
string& password, const
byte *cipher, const std::
size_t cipherSize) override;
22 std::vector<
byte>
Decrypt(const std::
string& password, const std::vector<
byte>& cipher) override;
23 void Encrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
24 void Decrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
27 std::unique_ptr<CryptoPP::GCM<CryptoPP::
AES>::
Encryption> m_aes_encryptor;
28 std::unique_ptr<CryptoPP::GCM<CryptoPP::
AES>::Decryption> m_aes_decryptor;
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
AES(const Algorithm::Intent intent) noexcept
std::vector< byte > Encrypt(const std::string &password, const byte *buffer, const std::size_t buffSize) override
std::vector< byte > Decrypt(const std::string &password, const byte *cipher, const std::size_t cipherSize) override
Algorithm abstract class.