1.2.2.2.5.1.2.1 MW_AES_AesCbcDecrypt
C
uint16_t MW_AES_AesCbcDecrypt(MW_AES_Ctx_T * p_ctx, uint16_t length, uint8_t *p_plainText, uint8_t *p_chiperText);
Description
The API is used to decrypt a block of data using the AES CBC mode.
Parameters
Parameter | Description |
---|---|
[in] p_ctx | Pointer to the structure of AES context. Refer to MW_AES_Ctx_T for detail structure info. |
[in] length | The length of data to be decrypted. |
[out] p_plainText | Pointer to buffer to store the results of the decryption. |
[in] p_chiperText | Pointer to buffer holding the data to be decrypted. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Descrypt successfully. |
MBA_RES_FAIL | Failed to Descrypt. |