42#ifndef _DWMCREDENCEXCHACHA20POLY1305_HH_
43#define _DWMCREDENCEXCHACHA20POLY1305_HH_
51 namespace XChaCha20Poly1305 {
59 bool Encrypt(std::string & cipherText,
const std::string & message,
60 const Nonce & nonce,
const std::string & secretKey);
67 bool Decrypt(std::string & message,
const std::string & cipherText,
68 const Nonce & nonce,
const std::string & secretKey);
Dwm::Credende::Nonce class declaration.
bool Decrypt(std::string &message, const std::string &cipherText, const Nonce &nonce, const std::string &secretKey)
Decrypts the given cipherText using the given nonce and secretKey.
bool Encrypt(std::string &cipherText, const std::string &message, const Nonce &nonce, const std::string &secretKey)
Encrypts the given message using the given nonce and secretKey.
Encapsulates a nonce for encryption.
Definition DwmCredenceNonce.hh:60