Function esp_idf_svc::sys::mbedtls_md_hmac_finish

source ยท
pub unsafe extern "C" fn mbedtls_md_hmac_finish(
    ctx: *mut mbedtls_md_context_t,
    output: *mut u8,
) -> i32
Expand description

\brief This function finishes the HMAC operation, and writes the result to the output buffer.

             Call this function after mbedtls_md_hmac_starts() and
             mbedtls_md_hmac_update() to get the HMAC value. Afterwards
             you may either call mbedtls_md_free() to clear the context,
             or call mbedtls_md_hmac_reset() to reuse the context with
             the same HMAC key.

\param ctx The message digest context containing an embedded HMAC context. \param output The generic HMAC checksum result.

\return \c 0 on success. \return #MBEDTLS_ERR_MD_BAD_INPUT_DATA on parameter-verification failure.