SharkSSL™ Embedded SSL/TLS Stack

AES-CCM. More...

Data Structures

struct  SharkSslAesCcmCtx
 AesCcmCtx. More...
 

Typedefs

typedef struct SharkSslAesCcmCtx SharkSslAesCcmCtx
 AesCcmCtx.
 

Functions

SHARKSSL_API void SharkSslAesCcmCtx_constructor (SharkSslAesCcmCtx *ctx, const U8 *key, U8 keyLen, U8 tagLen)
 Initialize. More...
 
SHARKSSL_API int SharkSslAesCcmCtx_encrypt (SharkSslAesCcmCtx *ctx, const U8 vect[12], U8 *tagout, const U8 *auth, U16 authlen, const U8 *input, U8 *output, U16 len)
 Encrypt.
 
SHARKSSL_API int SharkSslAesCcmCtx_decrypt (SharkSslAesCcmCtx *ctx, const U8 vect[12], U8 *tagin, const U8 *auth, U16 authlen, const U8 *input, U8 *output, U16 len)
 Decrypt.
 

Detailed Description

AES-CCM.

Function Documentation

◆ SharkSslAesCcmCtx_constructor()

SHARKSSL_API void SharkSslAesCcmCtx_constructor ( SharkSslAesCcmCtx ctx,
const U8 *  key,
U8  keyLen,
U8  tagLen 
)

Initialize.

Parameters
ctxUninitialized data of size sizeof(SharkSslAesCcmCtx).
keythe encryption/decryption key
keyLen'key' length
tagLenlength of the tag (8 or 16 bytes)