nrfxlib API 0.1.0
|
#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
Macros | |
#define | ocrypto_chacha20_KEY_BYTES (32) |
#define | ocrypto_chacha20_NONCE_BYTES_MAX (12) |
Functions | |
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) |
Incremental ChaCha20 Encoder. | |
This group of functions can be used to incrementally compute the ChaCha20 encryption for a given message and key, by segmenting a message into smaller chunks. Use pattern: Encoding/Decoding: ocrypto_chacha20_init(ctx, n, n_len, key, count);
ocrypto_chacha20_update(ctx, c, m, m_len);
...
ocrypto_chacha20_update(ctx, c, m, m_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) void ocrypto_chacha20_update(ocrypto_chacha20_ctx *ctx, uint8_t *c, const uint8_t *m, size_t m_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) |
void | ocrypto_chacha20_update (ocrypto_chacha20_ctx *ctx, uint8_t *c, const uint8_t *m, size_t m_len) |