SEcube
SEcube Open Source Library - Host
|
CMAC-AES functions | |
int32_t | B5_CmacAes256_Init (B5_tCmacAesCtx *ctx, const uint8_t *Key, int16_t keySize) |
Initialize the CMAC-AES context. More... | |
int32_t | B5_CmacAes256_Update (B5_tCmacAesCtx *ctx, const uint8_t *data, int32_t dataLen) |
Compute the CMAC-AES algorithm on input data depending on the current status of the CMAC-AES context. More... | |
int32_t | B5_CmacAes256_Finit (B5_tCmacAesCtx *ctx, uint8_t *rSignature) |
De-initialize the current CMAC-AES context. More... | |
int32_t | B5_CmacAes256_Reset (B5_tCmacAesCtx *ctx) |
Reset the current CMAC-AES context. More... | |
int32_t | B5_CmacAes256_Sign (const uint8_t *data, int32_t dataLen, const uint8_t *Key, int16_t keySize, uint8_t *rSignature) |
Compute the signature through the CMAC-AES algorithm. More... | |
int32_t B5_CmacAes256_Finit | ( | B5_tCmacAesCtx * | ctx, |
uint8_t * | rSignature | ||
) |
De-initialize the current CMAC-AES context.
ctx | Pointer to the CMAC-AES context to de-initialize. |
rSignature | Pointer to a blank memory area that can store the computed output signature. |
int32_t B5_CmacAes256_Init | ( | B5_tCmacAesCtx * | ctx, |
const uint8_t * | Key, | ||
int16_t | keySize | ||
) |
Initialize the CMAC-AES context.
ctx | Pointer to the CMAC-AES data structure to be initialized. |
Key | Pointer to the Key that must be used. |
keySize | Key size. See CMAC-AES Key, Blk Sizes for supported sizes. |
int32_t B5_CmacAes256_Reset | ( | B5_tCmacAesCtx * | ctx | ) |
Reset the current CMAC-AES context.
ctx | Pointer to the CMAC-AES context to reset. |
int32_t B5_CmacAes256_Sign | ( | const uint8_t * | data, |
int32_t | dataLen, | ||
const uint8_t * | Key, | ||
int16_t | keySize, | ||
uint8_t * | rSignature | ||
) |
Compute the signature through the CMAC-AES algorithm.
data | Pointer to the input data. |
dataLen | Input data length (in Bytes). |
Key | Pointer to the Key that must be used. |
keySize | Key size. See CMAC-AES Key, Blk Sizes for supported sizes. |
rSignature | Pointer to a blank memory area that can store the computed output signature. |
int32_t B5_CmacAes256_Update | ( | B5_tCmacAesCtx * | ctx, |
const uint8_t * | data, | ||
int32_t | dataLen | ||
) |
Compute the CMAC-AES algorithm on input data depending on the current status of the CMAC-AES context.
ctx | Pointer to the current CMAC-AES context. |
data | Pointer to the input data. |
dataLen | Bytes to be processed. |