MW_AES_AesEcbEncrypt

C

uint16_t MW_AES_AesEcbEncrypt(MW_AES_Ctx_T * p_ctx, uint16_t length, uint8_t *p_chiperText, uint8_t *p_plainText);

Description

Encrypts a block of data using AES ECB mode.

Parameters

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

Return values

Return valueDescription
MBA_RES_SUCCESSEncryption successful.
MBA_RES_FAILEncryption failed.