12.1.2.7 aes_sync_ecb_crypt
AES-ECB block encryption/decryption.
int32_t aes_sync_ecb_crypt(
struct aes_sync_descriptor * descr,
const enum aes_action enc,
const uint8_t * input,
uint8_t * output
)
Parameters
- descr
-
Type: struct aes_sync_descriptor Struct *
The AES descriptor
- enc
-
Type: const enum aes_action
AES_SYNC_ENCRYPT or AES_SYNC_DECRYPT
- input
-
Type: const uint8_t *
16-byte input data
- output
-
Type: uint8_t *
16-byte output data
Returns
Type: int32_t
ERR_NONE if successful