SharkSSL™ Embedded SSL/TLS Stack

Detailed Description

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.
 

Function Documentation

◆ SharkSslChaChaCtx_constructor()

SHARKSSL_API void SharkSslChaChaCtx_constructor ( SharkSslChaChaCtx ctx,
const U8 *  key,
U8  keyLen 
)

Initialize.

Parameters
ctxUninitialized data of size sizeof(SharkSslChaChaCtx)
key16- or 32-byte key
keyLenthe key length in bytes (either 16 or 32)

◆ SharkSslChaChaCtx_setIV()

SHARKSSL_API void SharkSslChaChaCtx_setIV ( SharkSslChaChaCtx ctx,
const U8  IV[12] 
)

Initialize.

Parameters
ctxInitialized data of size sizeof(SharkSslChaChaCtx)
IV12-byte initialization vector (per RFC 7905)