1.1.3.10 DRV_CRYPTO_AES_Initialize()
AES_ERROR DRV_CRYPTO_AES_Initialize (void * contextData, AESCON_MODE mode, AESCON_OPERATION operation, void * key, uint32_t keyLength, const void * initVector, uint32_t initVectorLength)
This function initializes a new AES operation with the specified mode and operation type.
| contextData |
The context data for this operation. |
| mode |
The AESCON_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 initialization vector (IV) data to use. |
| initVectorLength |
The length of the IV data. |
| AES_NO_ERROR |
Success. |
| AES_STATE_ERROR |
Invalid or unexpected AES state. |
| AES_INITIALIZE_ERROR |
Failure during AES initialization. |
Note:
Reinitializing an AES operation in progress will void the previous operation.
