29#ifndef OCRYPTO_CHACHA20_H
30#define OCRYPTO_CHACHA20_H
44#define ocrypto_chacha20_KEY_BYTES (32)
49#define ocrypto_chacha20_NONCE_BYTES_MAX (12)
57} ocrypto_chacha20_ctx;
94 ocrypto_chacha20_ctx *ctx,
95 const uint8_t *n,
size_t n_len,
117 ocrypto_chacha20_ctx *ctx,
119 const uint8_t *m,
size_t m_len);
147 const uint8_t *m,
size_t m_len,
148 const uint8_t *n,
size_t n_len,
void ocrypto_chacha20_init(ocrypto_chacha20_ctx *ctx, const uint8_t *n, size_t n_len, const uint8_t key[(32)], uint32_t count)
#define ocrypto_chacha20_KEY_BYTES
Definition: ocrypto_chacha20.h:44
void ocrypto_chacha20_encode(uint8_t *c, const uint8_t *m, size_t m_len, const uint8_t *n, size_t n_len, const uint8_t key[(32)], uint32_t count)
void ocrypto_chacha20_update(ocrypto_chacha20_ctx *ctx, uint8_t *c, const uint8_t *m, size_t m_len)