2 #ifndef ENIGMA_CHACHA_H
3 #define ENIGMA_CHACHA_H
24 std::vector<
byte>
Encrypt(const std::
string& password, const
byte *buffer, const std::
size_t buffSize) override;
25 std::vector<
byte>
Encrypt(const std::
string& password, const std::vector<
byte>& buffer) override;
26 std::vector<
byte>
Decrypt(const std::
string& password, const
byte *cipher, const std::
size_t cipherSize) override;
27 std::vector<
byte>
Decrypt(const std::
string& password, const std::vector<
byte>& cipher) override;
28 void Encrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
29 void Decrypt(const std::
string& password, const fs::path& in_filename, const fs::path& out_filename) override;
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Algorithm abstract class.
~ChaCha20Poly1305() noexcept override
std::vector< byte > Encrypt(const std::string &password, const byte *buffer, const std::size_t buffSize) override
ChaCha20Poly1305(const Algorithm::Intent intent) noexcept
std::vector< byte > Decrypt(const std::string &password, const byte *cipher, const std::size_t cipherSize) override