Function esp_idf_sys::esp_aes_gcm_starts
source ยท pub unsafe extern "C" fn esp_aes_gcm_starts(
ctx: *mut esp_gcm_context,
mode: c_int,
iv: *const c_uchar,
iv_len: usize,
) -> c_int
Expand description
\brief This function starts a GCM encryption or decryption operation.
\param ctx The GCM context. This must be initialized. \param mode The operation to perform: #MBEDTLS_GCM_ENCRYPT or #MBEDTLS_GCM_DECRYPT. \param iv The initialization vector. This must be a readable buffer of at least \p iv_len Bytes. \param iv_len The length of the IV.
\return \c 0 on success.