Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
Camellia.hpp
Go to the documentation of this file.
1 #pragma once
3 
12 class Camellia : public Algorithm {
13  public:
17  explicit Camellia(const Algorithm::Intent intent) noexcept;
18  ~Camellia() noexcept override;
19 
20  public:
21  std::vector<byte> Encrypt(const std::string& password, const byte *buffer, const std::size_t buffSize) override;
22  std::vector<byte> Encrypt(const std::string& password, const std::vector<byte>& buffer) override;
23  std::vector<byte> Decrypt(const std::string& password, const byte *cipher, const std::size_t cipherSize) override;
24  std::vector<byte> Decrypt(const std::string& password, const std::vector<byte>& cipher) override;
25  void Encrypt(const std::string& password, const fs::path& in_filename, const fs::path& out_filename) override;
26  void Decrypt(const std::string& password, const fs::path& in_filename, const fs::path& out_filename) override;
27 
28  private:
29  std::unique_ptr<CryptoPP::GCM<CryptoPP::Camellia>::Encryption> m_camellia_encryptor;
30  std::unique_ptr<CryptoPP::GCM<CryptoPP::Camellia>::Decryption> m_camellia_decryptor;
31 };
32 
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
Algorithm abstract class.
Definition: Algorithm.hpp:53
~Camellia() noexcept override
Camellia(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