Mistake on this page?
Report an issue in GitHub or email us
Modules | Macros | Typedefs | Functions
CryptoCell POLY APIs

Modules

 CryptoCell POLY specific errors
 

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

Macro Definition Documentation

#define CRYS_POLY_KEY_SIZE_IN_BYTES   (CRYS_POLY_KEY_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE)

POLY KEY size in bytes.

Definition at line 62 of file crys_poly.h.

#define CRYS_POLY_KEY_SIZE_IN_WORDS   8

POLY KEY size in words.

Definition at line 60 of file crys_poly.h.

#define CRYS_POLY_MAC_SIZE_IN_BYTES   (CRYS_POLY_MAC_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE)

POLY MAC size in bytes.

Definition at line 67 of file crys_poly.h.

#define CRYS_POLY_MAC_SIZE_IN_WORDS   4

POLY MAC size in words.

Definition at line 65 of file crys_poly.h.

Typedef Documentation

typedef uint32_t CRYS_POLY_Key_t[8]

CHACHA key buffer definition.

Definition at line 75 of file crys_poly.h.

typedef uint32_t CRYS_POLY_Mac_t[4]

CHACHA MAC buffer definition.

Definition at line 72 of file crys_poly.h.

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.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.