Function 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 Add additional data (for AEAD ciphers). Currently only supported with GCM. Must be called exactly once, after mbedtls_cipher_reset().

\param ctx generic cipher context \param ad Additional data to use. \param ad_len Length of ad.

\return 0 on success, or a specific error code.