1.2.2.2.5.1.2.4 MW_AES_EcbEncryptInit

C

uint16_t MW_AES_EcbEncryptInit(MW_AES_Ctx_T * p_ctx, uint8_t *p_aesKey);

Description

The API is used to initialize AES ECB block cipher Encryption.

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.

Return values

Return valueDescription
MBA_RES_SUCCESSInitialize successfully.
MBA_RES_FAILFailed to initialize.