37#ifndef OCRYPTO_CHACHA20_H
38#define OCRYPTO_CHACHA20_H
52#define ocrypto_chacha20_KEY_BYTES (32)
57#define ocrypto_chacha20_NONCE_BYTES_MAX (12)
65} ocrypto_chacha20_ctx;
105 ocrypto_chacha20_ctx *ctx,
106 const uint8_t *n,
size_t n_len,
131 ocrypto_chacha20_ctx *ctx,
133 const uint8_t *m,
size_t m_len);
162 const uint8_t *m,
size_t m_len,
163 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:52
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)