Knight KE / Mbed OS Game_Master
Embed: (wiki syntax)

« Back to documentation index

CryptoCell POLY APIs

CryptoCell POLY APIs

Modules

 CryptoCell POLY specific errors

Typedefs

typedef uint32_t CRYS_POLY_Mac_t [CRYS_POLY_MAC_SIZE_IN_WORDS]
typedef uint32_t CRYS_POLY_Key_t [CRYS_POLY_KEY_SIZE_IN_WORDS]

Functions

CIMPORT_C CRYSError_t CRYS_POLY (CRYS_POLY_Key_t pKey, uint8_t *pDataIn, size_t dataInSize, CRYS_POLY_Mac_t macRes)
 This function is used to perform the POLY MAC Calculation.

Typedef Documentation

typedef uint32_t CRYS_POLY_Key_t[CRYS_POLY_KEY_SIZE_IN_WORDS]

CHACHA key buffer definition.

Definition at line 75 of file crys_poly.h.

typedef uint32_t CRYS_POLY_Mac_t[CRYS_POLY_MAC_SIZE_IN_WORDS]

CHACHA MAC buffer definition.

Definition at line 72 of file crys_poly.h.


Function Documentation

CIMPORT_C CRYSError_t CRYS_POLY ( CRYS_POLY_Key_t  pKey,
uint8_t *  pDataIn,
size_t  dataInSize,
CRYS_POLY_Mac_t  macRes 
)

This function is used to perform the POLY MAC Calculation.

Returns:
CRYS_OK on success.
A non-zero value on failure as defined crys_poly_error.h.
Parameters:
[in]pKeyA pointer to the user's key buffer.
[in]pDataInA pointer to the buffer of the input data to the CHACHA. must not be null.
[in]dataInSizeThe size of the input data. must not be 0.
[in,out]macResPointer to the MAC result buffer.