Function esp_idf_svc::sys::mbedtls_sha1_finish
source ยท pub unsafe extern "C" fn mbedtls_sha1_finish(
ctx: *mut mbedtls_sha1_context,
output: *mut u8,
) -> i32
Expand description
\brief This function finishes the SHA-1 operation, and writes the result to the output buffer.
\warning SHA-1 is considered a weak message digest and its use constitutes a security risk. We recommend considering stronger message digests instead.
\param ctx The SHA-1 context to use. This must be initialized and have a hash operation started. \param output The SHA-1 checksum result. This must be a writable buffer of length \c 20 Bytes.
\return \c 0 on success. \return A negative error code on failure.