Function esp_idf_sys::mbedtls_cipher_update_ad
source ยท pub unsafe extern "C" fn mbedtls_cipher_update_ad(
ctx: *mut mbedtls_cipher_context_t,
ad: *const c_uchar,
ad_len: usize,
) -> c_int
Expand description
\brief This function adds additional data for AEAD ciphers. Currently supported with GCM and ChaCha20+Poly1305.
\param ctx The generic cipher context. This must be initialized. \param ad The additional data to use. This must be a readable buffer of at least \p ad_len Bytes. \param ad_len The length of \p ad in Bytes.
\return \c 0 on success. \return A specific error code on failure.