1.1.5.8 DRV_CRYPTO_AES_Initialize()
AES_ERROR DRV_CRYPTO_AES_Initialize (void * contextData, AESCON_MODE mode, AESCON_OPERATION operation, void * key, uint32_t keyLength, void * initVector, uint32_t initVectorLength)
Initialize a new AES operation.
contextData |
The context data for this operation. |
mode |
The AES_MODE mode to use. |
operation |
The AESCON_OPERATION operation to perform. |
key |
The AES key to use. |
keyLength |
The length of the AES key. |
initVector |
The initalization vector (IV) data to use. |
initVectorLength |
The length if the IV data. |
AES_NO_ERROR on success, AES_STATE_ERROR/AES_INITIALIZE_ERROR on failure. |
Note:
Reinitializing an AES operation in progress will void the previous operation.