Function esp_idf_sys::mbedtls_cipher_check_tag
source ยท pub unsafe extern "C" fn mbedtls_cipher_check_tag(
ctx: *mut mbedtls_cipher_context_t,
tag: *const c_uchar,
tag_len: usize,
) -> c_int
Expand description
\brief This function checks the tag for AEAD ciphers. Currently supported with GCM and ChaCha20+Poly1305. This must be called after mbedtls_cipher_finish().
\param ctx The generic cipher context. This must be initialized. \param tag The buffer holding the tag. This must be a readable buffer of at least \p tag_len Bytes. \param tag_len The length of the tag to check.
\return \c 0 on success. \return A specific error code on failure.