12.1.2.9 aes_sync_cfb128_crypt
AES-CFB128 block encryption/decryption.
int32_t aes_sync_cfb128_crypt(
struct aes_sync_descriptor * descr,
const enum aes_action enc,
const uint8_t * input,
uint8_t * output,
uint32_t length,
uint8_t * iv,
uint32_t * iv_ofst
)
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
- length
-
Type: uint32_t
Byte length of the input data
- iv
-
Type: uint8_t *
Initialization Vector (updated after use)
- iv_ofst
-
Type: uint32_t *
Offset in IV (updated after use)
Returns
Type: int32_t
ERR_NONE if successful