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
| Parameter | Description |
|---|---|
| [in] p_ctx | Pointer to the AES context structure. See MW_AES_Ctx_T. |
| [in] length | The length of the data to be encrypted. |
| [out] p_chiperText | Pointer to the buffer where the encrypted data will be stored. |
| [in] p_plainText | Pointer to the buffer containing the data to be encrypted. |
Return values
| Return value | Description |
|---|---|
| MBA_RES_SUCCESS | Encryption successful. |
| MBA_RES_FAIL | Encryption failed. |
