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
Decrypts a block of data using AES CBC mode.
Parameters
| Parameter | Description |
|---|---|
| [in] p_ctx | Pointer to the AES context structure. See MW_AES_Ctx_T. |
| [in] length | The length of the data to be decrypted. |
| [out] p_plainText | Pointer to the buffer where the decrypted data will be stored. |
| [in] p_chiperText | Pointer to the buffer containing the data to be decrypted. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Decryption successful. |
| MBA_RES_FAIL | Decryption failed. |
