Dwm::Credence::XChaCha20Poly1305 function declarations. More...
#include "DwmCredenceNonce.hh"
Go to the source code of this file.
Functions | |
| bool | Dwm::Credence::XChaCha20Poly1305::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. | |
| bool | Dwm::Credence::XChaCha20Poly1305::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. | |
Dwm::Credence::XChaCha20Poly1305 function declarations.
| bool Dwm::Credence::XChaCha20Poly1305::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.
On success, stores the result in message and returns true. On failure, clears message and returns false.

| bool Dwm::Credence::XChaCha20Poly1305::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.
Stores the result in cipherText and returns true on success. On failure, clears cipherText and returns false.
