The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
chacha20.c File Reference

the ChaCha20 block function (see chacha20.h). More...

#include "chacha20.h"

Functions

void chacha20_block (const uint8_t key[CHACHA20_KEY_SIZE], uint32_t counter, const uint8_t nonce[12], uint8_t out[CHACHA20_BLOCK_SIZE])
 make one 64-byte block of key stream.

Detailed Description

the ChaCha20 block function (see chacha20.h).

Function Documentation

◆ chacha20_block()

void chacha20_block ( const uint8_t key[CHACHA20_KEY_SIZE],
uint32_t counter,
const uint8_t nonce[12],
uint8_t out[CHACHA20_BLOCK_SIZE] )

make one 64-byte block of key stream.

Parameters
key32 bytes.
counterthe block counter.
nonce12 bytes.
outreceives 64 bytes.