SharkSSL™ Embedded SSL/TLS Stack
|
CHACHA20.
Data Structures | |
struct | SharkSslChaChaCtx |
CHACHA20. More... | |
Functions | |
SHARKSSL_API void | SharkSslChaChaCtx_constructor (SharkSslChaChaCtx *ctx, const U8 *key, U8 keyLen) |
Initialize. More... | |
SHARKSSL_API void | SharkSslChaChaCtx_setIV (SharkSslChaChaCtx *ctx, const U8 IV[12]) |
Initialize. More... | |
SHARKSSL_API void | SharkSslChaChaCtx_crypt (SharkSslChaChaCtx *ctx, const U8 *input, U8 *output, U32 len) |
Encrypt or decrypt. | |
SHARKSSL_API void SharkSslChaChaCtx_constructor | ( | SharkSslChaChaCtx * | ctx, |
const U8 * | key, | ||
U8 | keyLen | ||
) |
Initialize.
ctx | Uninitialized data of size sizeof(SharkSslChaChaCtx) |
key | 16- or 32-byte key |
keyLen | the key length in bytes (either 16 or 32) |
SHARKSSL_API void SharkSslChaChaCtx_setIV | ( | SharkSslChaChaCtx * | ctx, |
const U8 | IV[12] | ||
) |
Initialize.
ctx | Initialized data of size sizeof(SharkSslChaChaCtx) |
IV | 12-byte initialization vector (per RFC 7905) |