MCCI TweetNaCl
TweetNaCl library adapted for embedded use
mcci_tweetnacl_box.h File Reference
#include "mcci_tweetnacl.h"
+ Include dependency graph for mcci_tweetnacl_box.h:

Go to the source code of this file.

Data Structures

struct  mcci_tweetnacl_box_beforenm_t
 Reference structure for precomputation bytes for box. More...
 
struct  mcci_tweetnacl_box_cipherzero_t
 Reference structure for bytes required to be zero at front of cihper text. More...
 
struct  mcci_tweetnacl_box_messagezero_t
 Reference structure for bytes required to be zero at front of plaintext. More...
 
struct  mcci_tweetnacl_box_nonce_t
 Reference structure for nonce bytes for box. More...
 
struct  mcci_tweetnacl_box_privatekey_t
 Reference structure for private key. More...
 
struct  mcci_tweetnacl_box_publickey_t
 Reference structure for public key. More...
 

Macros

#define _mcci_tweetnacl_box_h_   /* prevent multiple includes */
 

Functions

static mcci_tweetnacl_result_t mcci_tweetnacl_box (unsigned char *pCipherText, const unsigned char *pPlainText, size_t sizeText, const mcci_tweetnacl_box_nonce_t *pNonce, const mcci_tweetnacl_box_publickey_t *pPublicKey, const mcci_tweetnacl_box_privatekey_t *pPrivateKey)
 Public-key authenticated encryption. More...
 
static mcci_tweetnacl_result_t mcci_tweetnacl_box_afternm (unsigned char *pCipherText, const unsigned char *pPlainText, size_t sizeText, const mcci_tweetnacl_box_nonce_t *pNonce, const mcci_tweetnacl_box_beforenm_t *pPrecomputed)
 Public-key authenticated encryption (precomputed) More...
 
static void mcci_tweetnacl_box_beforenm (mcci_tweetnacl_box_beforenm_t *k, const mcci_tweetnacl_box_publickey_t *pPublicKey, const mcci_tweetnacl_box_privatekey_t *pPrivateKey)
 Precompute for public-key authenticated cryptographic operations. More...
 
mcci_tweetnacl_randombytes_error_t mcci_tweetnacl_box_keypair (mcci_tweetnacl_box_publickey_t *pPublicKey, mcci_tweetnacl_box_privatekey_t *pPrivateKey)
 Generate a public/private key pair. More...
 
static mcci_tweetnacl_result_t mcci_tweetnacl_box_open (unsigned char *pPlainText, const unsigned char *pCipherText, size_t sizeText, const mcci_tweetnacl_box_nonce_t *pNonce, const mcci_tweetnacl_box_publickey_t *pPublicKey, const mcci_tweetnacl_box_privatekey_t *pPrivateKey)
 Public-key authenticated decryption. More...
 
static mcci_tweetnacl_result_t mcci_tweetnacl_box_open_afternm (unsigned char *pPlainText, const unsigned char *pCipherText, size_t sizeText, const mcci_tweetnacl_box_nonce_t *pNonce, const mcci_tweetnacl_box_beforenm_t *pPrecomputed)
 Public-key authenticated decryption (precomputed)) More...
 

Macro Definition Documentation

◆ _mcci_tweetnacl_box_h_

#define _mcci_tweetnacl_box_h_   /* prevent multiple includes */

Definition at line 24 of file mcci_tweetnacl_box.h.