Function esp_idf_svc::hal::sys::mbedtls_sha512_finish

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

\brief This function finishes the SHA-512 operation, and writes the result to the output buffer.

\param ctx The SHA-512 context. This must be initialized and have a hash operation started. \param output The SHA-384 or SHA-512 checksum result. This must be a writable buffer of length \c 64 bytes for SHA-512, \c 48 bytes for SHA-384.

\return \c 0 on success. \return A negative error code on failure.