1.2.2.2.5.1.2.3 MW_AES_CbcDecryptInit

C

uint16_t MW_AES_CbcDecryptInit(MW_AES_Ctx_T * p_ctx, uint8_t *p_aesKey, uint8_t *p_iv);

Description

The API is used to initialize AES CBC block cipher decryption.

Parameters

ParameterDescription
[out] p_ctxPointer to the structure of AES context. Refer to MW_AES_Ctx_T for detail structure info.
[in] p_aesKeyPointer to the 16 bytes encryption key.
[in] p_ivPointer to the 16 bytes IV value.

Return values

Return valueDescription
MBA_RES_SUCCESSInitialize successfully.
MBA_RES_FAILFailed to initialize.