Function esp_idf_svc::sys::esp_aes_gcm_starts
source ยท pub unsafe extern "C" fn esp_aes_gcm_starts(
ctx: *mut esp_gcm_context,
mode: i32,
iv: *const u8,
iv_len: usize,
) -> i32
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.