Function esp_idf_svc::sys::mbedtls_cipher_update_ad
source ยท pub unsafe extern "C" fn mbedtls_cipher_update_ad(
ctx: *mut mbedtls_cipher_context_t,
ad: *const u8,
ad_len: usize,
) -> i32
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.