nRF5 SDK v13.0.0
Macros | Typedefs | Functions

This file contains all of the enums and definitions that are used for the CRYS POLY APIs, as well as the APIs themselves. More...

Macros

#define CRYS_POLY_KEY_SIZE_IN_WORDS   8
 
#define CRYS_POLY_KEY_SIZE_IN_BYTES   (CRYS_POLY_KEY_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE)
 
#define CRYS_POLY_MAC_SIZE_IN_WORDS   4
 
#define CRYS_POLY_MAC_SIZE_IN_BYTES   (CRYS_POLY_MAC_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE)
 

Typedefs

typedef uint32_t CRYS_POLY_Mac_t [4]
 
typedef uint32_t CRYS_POLY_Key_t [8]
 

Functions

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. More...
 

Detailed Description

This file contains all of the enums and definitions that are used for the CRYS POLY APIs, as well as the APIs themselves.

Macro Definition Documentation

#define CRYS_POLY_KEY_SIZE_IN_WORDS   8

The POLY KEY size in bytes.

#define CRYS_POLY_MAC_SIZE_IN_WORDS   4

The POLY MAC size in bytes.

Typedef Documentation

typedef uint32_t CRYS_POLY_Key_t[8]

Defines the CHACHA key buffer.

typedef uint32_t CRYS_POLY_Mac_t[4]

Defines the CHACHA key buffer.

Function Documentation

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.

Documentation feedback | Developer Zone | Subscribe | Updated