Function esp_idf_svc::hal::sys::esp_aes_crypt_ofb

source ยท
pub unsafe extern "C" fn esp_aes_crypt_ofb(
    ctx: *mut esp_aes_context,
    length: usize,
    iv_off: *mut usize,
    iv: *mut u8,
    input: *const u8,
    output: *mut u8,
) -> i32
Expand description

\brief This function performs an AES-OFB (Output Feedback Mode) encryption or decryption operation.

\param ctx The AES context to use for encryption or decryption. It must be initialized and bound to a key. \param length The length of the input data. \param iv_off The offset in IV (updated after use). It must point to a valid \c size_t. \param iv The initialization vector (updated after use). It must be a readable and writeable buffer of \c 16 Bytes. \param input The buffer holding the input data. It must be readable and of size \p length Bytes. \param output The buffer holding the output data. It must be writeable and of size \p length Bytes.

\return \c 0 on success.