mirror of https://github.com/skeeto/enchive.git
17 lines
374 B
C
17 lines
374 B
C
#ifndef CHACHA_H
|
|
#define CHACHA_H
|
|
|
|
#include "../config.h"
|
|
|
|
#define CHACHA_BLOCKLENGTH 64
|
|
|
|
typedef struct {
|
|
uint32_t input[16];
|
|
} chacha_ctx;
|
|
|
|
void chacha_keysetup(chacha_ctx *, const uint8_t *k, uint32_t kbits);
|
|
void chacha_ivsetup(chacha_ctx *, const uint8_t *iv);
|
|
void chacha_encrypt(chacha_ctx *, const uint8_t *m, uint8_t *c, uint32_t bytes);
|
|
|
|
#endif /* CHACHA_H */
|