12.1.2.13 aes_sync_cfb8_crypt
AES-CFB8 block encryption/decryption.
int32_t aes_sync_cfb8_crypt(
struct aes_sync_descriptor * descr,
const enum aes_action enc,
const uint8_t * input,
uint8_t * output,
uint32_t length,
uint8_t * iv
)
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 *
Buffer holding the input data
- output
-
Type: uint8_t *
Buffer holding the output data
- iv
-
Type: uint8_t *
Initialization Vector (updated after use)
Returns
Type: int32_t
ERR_NONE if successful