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

ParameterDescription
[in] p_ctxPointer to the AES context structure. See MW_AES_Ctx_T.
[in] lengthThe length of the data to be decrypted.
[out] p_plainTextPointer to the buffer where the decrypted data will be stored.
[in] p_chiperTextPointer to the buffer containing the data to be decrypted.

Return values

Return valueDescription
MBA_RES_SUCCESSDecryption successful.
MBA_RES_FAILDecryption failed.