Function esp_idf_svc::hal::sys::mbedtls_cipher_cmac_finish
source ยท pub unsafe extern "C" fn mbedtls_cipher_cmac_finish(
ctx: *mut mbedtls_cipher_context_t,
output: *mut u8,
) -> i32
Expand description
\brief This function finishes an ongoing CMAC operation, and writes the result to the output buffer.
It should be followed either by
mbedtls_cipher_cmac_reset(), which starts another CMAC
operation with the same key, or mbedtls_cipher_free(),
which clears the cipher context.
\param ctx The cipher context used for the CMAC operation. \param output The output buffer for the CMAC checksum result.
\return \c 0 on success. \return #MBEDTLS_ERR_MD_BAD_INPUT_DATA if parameter verification fails.