The AES-CBC block encryption/decryption length should be a multiple of 16 bytes.
int32_t aes_sync_cbc_crypt( struct aes_sync_descriptor * descr, const enum aes_action enc, const uint8_t * input, uint8_t * output, uint32_t length, uint8_t iv )
Type: struct aes_sync_descriptor Struct *
The AES descriptor
Type: const enum aes_action
AES_SYNC_ENCRYPT or AES_SYNC_DECRYPT
Type: const uint8_t *
16-byte input data
Type: uint8_t *
16-byte output data
Type: uint32_t
Byte length of the input data
Type: uint8_t
Initialization vector (updated after use)
Type: int32_t
ERR_NONE if successful