12.1.2.14 aes_sync_ofb_crypt

AES-OFB block encryption/decryption.

int32_t aes_sync_ofb_crypt(
    struct aes_sync_descriptor * descr,
    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

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