Monero
Loading...
Searching...
No Matches
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

◆ CHACHA_KEY_SIZE

#define CHACHA_KEY_SIZE   32

Function Documentation

◆ chacha20()

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

◆ chacha8()

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