MCCI TweetNaCl
TweetNaCl library adapted for embedded use
mcci_tweetnacl_secretbox.h File Reference

Go to the source code of this file.

Data Structures

struct  mcci_tweetnacl_secretbox_cipherzero_t
 Reference structure for bytes required to be zero at front of cihper text. More...
 
struct  mcci_tweetnacl_secretbox_key_t
 Reference structure for key bytes for secretbox. More...
 
struct  mcci_tweetnacl_secretbox_messagezero_t
 Reference structure for bytes requried to be zero at front of plaintext. More...
 
struct  mcci_tweetnacl_secretbox_nonce_t
 Reference structure for nonce bytes for secretbox. More...
 

Macros

#define _mcci_tweetnacl_secretbox_h_   /* prevent multiple includes */
 

Functions

static mcci_tweetnacl_result_t mcci_tweetnacl_secretbox (unsigned char *pCipherText, const unsigned char *pPlainText, size_t sizeText, const mcci_tweetnacl_secretbox_nonce_t *pNonce, const mcci_tweetnacl_secretbox_key_t *pKey)
 Secret-key authenticated encryption (using xsalsa20) More...
 
static mcci_tweetnacl_result_t mcci_tweetnacl_secretbox_open (unsigned char *pPlainText, const unsigned char *pCipherText, size_t sizeText, const mcci_tweetnacl_secretbox_nonce_t *pNonce, const mcci_tweetnacl_secretbox_key_t *pKey)
 Secret-key authenticated decryption (using xsalsa20) More...
 

Macro Definition Documentation

◆ _mcci_tweetnacl_secretbox_h_

#define _mcci_tweetnacl_secretbox_h_   /* prevent multiple includes */

Definition at line 24 of file mcci_tweetnacl_secretbox.h.