SEFile
Userspace drivers to manage a secure filesystem
 All Data Structures Files Functions Variables Typedefs Enumerator Macros Groups
CMAC-AES functions

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

Detailed Description

Function Documentation

int32_t B5_CmacAes256_Finit ( B5_tCmacAesCtx ctx,
uint8_t *  rSignature 
)

De-initialize the current CMAC-AES context.

Parameters
ctxPointer to the CMAC-AES context to de-initialize.
rSignaturePointer to a blank memory area that can store the computed output signature.
Returns
See CMAC-AES return values .
int32_t B5_CmacAes256_Init ( B5_tCmacAesCtx ctx,
const uint8_t *  Key,
int16_t  keySize 
)

Initialize the CMAC-AES context.

Parameters
ctxPointer to the CMAC-AES data structure to be initialized.
KeyPointer to the Key that must be used.
keySizeKey size. See CMAC-AES Key, Blk Sizes for supported sizes.
Returns
See CMAC-AES return values .
int32_t B5_CmacAes256_Reset ( B5_tCmacAesCtx ctx)

Reset the current CMAC-AES context.

Parameters
ctxPointer to the CMAC-AES context to reset.
Returns
See CMAC-AES return values .
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.

Parameters
dataPointer to the input data.
dataLenInput data length (in Bytes).
KeyPointer to the Key that must be used.
keySizeKey size. See CMAC-AES Key, Blk Sizes for supported sizes.
rSignaturePointer to a blank memory area that can store the computed output signature.
Returns
See CMAC-AES return values .
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.

Parameters
ctxPointer to the current CMAC-AES context.
dataPointer to the input data.
dataLenBytes to be processed.
Returns
See CMAC-AES return values .