1.2.2.2.5.1.2.4 MW_AES_EcbEncryptInit
C
uint16_t MW_AES_EcbEncryptInit(MW_AES_Ctx_T * p_ctx, uint8_t *p_aesKey);
Description
The API is used to initialize AES ECB block cipher Encryption.
Parameters
Parameter | Description |
---|---|
[out] p_ctx | Pointer to the structure of AES context. Refer to MW_AES_Ctx_T for detail structure info. |
[in] p_aesKey | Pointer to the 16 bytes encryption key. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Initialize successfully. |
MBA_RES_FAIL | Failed to initialize. |