blob: 46c56e24d49c3f0f1c46babbe7f32d21f42c6715 [file] [log] [blame] [raw]
#ifndef _ECIES_CHACHA20_H
#define _ECIES_CHACHA20_H
#ifndef _ECC_H_
#error "You need to include ecc.h first"
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define CHACHA20_KEY_BYTES 32
unsigned int ChaCha20_key_bytes(void);
void ChaCha20_ctr_crypt(ECIES_byte_t *data, ECIES_size_t size, const ECIES_byte_t *key);
void ChaCha20_cbc_mac(ECIES_byte_t *mac, const ECIES_byte_t *data, ECIES_size_t size, const ECIES_byte_t *key);
void ChaCha20_davies_meyer(ECIES_byte_t *out, const ECIES_byte_t *in, int ilen);
extern ECIES_byte_t ChaCha20_nonce[];
extern const ECIES_size_t ChaCha20_nonce_size;
#ifdef __cplusplus
}
#endif
#endif