![]() |
nRF5 SDK
v16.0.0
|
| Choose documentation: | nRF5 SDK | S112 SoftDevice API | S113 SoftDevice API | S132 SoftDevice API | S140 SoftDevice API | S212 SoftDevice API | S312 SoftDevice API | S332 SoftDevice API | S340 SoftDevice API |
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... | |
| #define CRYS_POLY_KEY_SIZE_IN_BYTES (CRYS_POLY_KEY_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE) |
POLY KEY size in bytes.
| #define CRYS_POLY_KEY_SIZE_IN_WORDS 8 |
POLY KEY size in words.
| #define CRYS_POLY_MAC_SIZE_IN_BYTES (CRYS_POLY_MAC_SIZE_IN_WORDS*SASI_32BIT_WORD_SIZE) |
POLY MAC size in bytes.
| #define CRYS_POLY_MAC_SIZE_IN_WORDS 4 |
POLY MAC size in words.
| typedef uint32_t CRYS_POLY_Key_t[8] |
CHACHA key buffer definition.
| typedef uint32_t CRYS_POLY_Mac_t[4] |
CHACHA MAC buffer definition.
| 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.
| [in] | pKey | A pointer to the user's key buffer. |
| [in] | pDataIn | A pointer to the buffer of the input data to the CHACHA. must not be null. |
| [in] | dataInSize | The size of the input data. must not be 0. |
| [in,out] | macRes | Pointer to the MAC result buffer. |