libDwmCredence-0.1.32
DwmCredenceXChaCha20Poly1305.hh File Reference

Dwm::Credence::XChaCha20Poly1305 function declarations. More...

Include dependency graph for DwmCredenceXChaCha20Poly1305.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.
 

Detailed Description

Dwm::Credence::XChaCha20Poly1305 function declarations.

Author
Daniel W. McRobb

Function Documentation

◆ Decrypt()

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.

Here is the call graph for this function:

◆ Encrypt()

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.

Here is the call graph for this function: