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

Go to the source code of this file.

Data Structures

struct  mcci_tweetnacl_stream_key_t
 abstract type for crypto keys More...
 
struct  mcci_tweetnacl_stream_nonce_t
 abstract type for crypto nonces More...
 

Macros

#define _mcci_tweetnacl_stream_h_   /* prevent multiple includes */
 

Functions

static void mcci_tweetnacl_core_hsalsa20 (unsigned char *out, const unsigned char *in, const mcci_tweetnacl_stream_key_t *key, const unsigned char *expansion)
 perform a core hash round of Salsa20 encryption. More...
 
static void mcci_tweetnacl_core_salsa20 (unsigned char *out, const unsigned char *in, const mcci_tweetnacl_stream_key_t *key, const unsigned char *expansion)
 perform a core hash round of Salsa20 encryption. More...
 
static void mcci_tweetnacl_stream (unsigned char *pOutText, size_t sizeText, const mcci_tweetnacl_stream_nonce_t *pNonce, const mcci_tweetnacl_stream_key_t *pKey)
 Generate stream of crypto bytes. More...
 
static void mcci_tweetnacl_stream_salsa20 (unsigned char *pOutText, size_t sizeText, const mcci_tweetnacl_stream_nonce_t *pNonce, const mcci_tweetnacl_stream_key_t *pKey)
 Generate stream of Salsa20 bytes. More...
 
static void mcci_tweetnacl_stream_salsa20_xor (unsigned char *pOutText, const unsigned char *pInText, size_t sizeText, const mcci_tweetnacl_stream_nonce_t *pNonce, const mcci_tweetnacl_stream_key_t *pKey)
 encrypt or decrypt text using Salsa20 More...
 
static void mcci_tweetnacl_stream_xor (unsigned char *pOutText, const unsigned char *pInText, size_t sizeText, const mcci_tweetnacl_stream_nonce_t *pNonce, const mcci_tweetnacl_stream_key_t *pKey)
 Encrypt or decrypt text (using xsalsa20) More...
 

Macro Definition Documentation

◆ _mcci_tweetnacl_stream_h_

#define _mcci_tweetnacl_stream_h_   /* prevent multiple includes */

Definition at line 24 of file mcci_tweetnacl_stream.h.