| 1 | /* @title: ChaCha20 */ |
|---|---|
| 2 | #pragma once |
| 3 | #include <stddef.h> |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | void chacha20_encrypt(const uint8_t key[32], const uint8_t nonce[12], |
| 7 | uint32_t counter, const uint8_t *in, uint8_t *out, |
| 8 | uint64_t len); |
| 9 |
| 1 | /* @title: ChaCha20 */ |
|---|---|
| 2 | #pragma once |
| 3 | #include <stddef.h> |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | void chacha20_encrypt(const uint8_t key[32], const uint8_t nonce[12], |
| 7 | uint32_t counter, const uint8_t *in, uint8_t *out, |
| 8 | uint64_t len); |
| 9 |