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

ParameterDescription
[in] p_ctxPointer to the structure of AES context. Refer to MW_AES_Ctx_T for detail structure info.
[in] lengthThe length of data to be decrypted.
[out] p_plainTextPointer to buffer to store the results of the decryption.
[in] p_chiperTextPointer to buffer holding the data to be decrypted.

Return values

Return valueDescription
MBA_RES_SUCCESSDescrypt successfully.
MBA_RES_FAILFailed to Descrypt.