Electroneum
chacha.h File Reference
#include <stdint.h>
#include <stddef.h>
Include dependency graph for chacha.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CHACHA_KEY_SIZE   32
 
#define CHACHA_IV_SIZE   8
 

Functions

void chacha8 (const void *data, size_t length, const uint8_t *key, const uint8_t *iv, char *cipher)
 
void chacha20 (const void *data, size_t length, const uint8_t *key, const uint8_t *iv, char *cipher)
 

Macro Definition Documentation

◆ CHACHA_IV_SIZE

#define CHACHA_IV_SIZE   8

Definition at line 37 of file chacha.h.

◆ CHACHA_KEY_SIZE

#define CHACHA_KEY_SIZE   32

Definition at line 36 of file chacha.h.

Function Documentation

◆ chacha20()

void chacha20 ( const void *  data,
size_t  length,
const uint8_t key,
const uint8_t iv,
char *  cipher 
)
Here is the caller graph for this function:

◆ chacha8()

void chacha8 ( const void *  data,
size_t  length,
const uint8_t key,
const uint8_t iv,
char *  cipher 
)
Here is the caller graph for this function: