SharkSSL™ Embedded SSL/TLS Stack

Detailed Description

POLY1305.

Data Structures

struct  SharkSslPoly1305Ctx
 POLY1305. More...
 

Typedefs

typedef struct SharkSslPoly1305Ctx SharkSslPoly1305Ctx
 POLY1305.
 

Functions

SHARKSSL_API void SharkSslPoly1305Ctx_constructor (SharkSslPoly1305Ctx *ctx, const U8 key[32])
 Initialize. More...
 
SHARKSSL_API void SharkSslPoly1305Ctx_append (SharkSslPoly1305Ctx *ctx, const U8 *in, U32 len)
 append
 
SHARKSSL_API void SharkSslPoly1305Ctx_finish (SharkSslPoly1305Ctx *ctx, U8 digest[SHARKSSL_POLY1305_HASH_LEN])
 finish
 
SHARKSSL_API int sharkssl_poly1305 (const U8 *data, U16 len, U8 *digest, const U8 key[32])
 poly1305
 

Function Documentation

◆ SharkSslPoly1305Ctx_constructor()

SHARKSSL_API void SharkSslPoly1305Ctx_constructor ( SharkSslPoly1305Ctx ctx,
const U8  key[32] 
)

Initialize.

Parameters
ctxUninitialized data of size sizeof(SharkSslPoly1305Ctx).
key16-byte key + 16-byte nonce