pub unsafe extern "C" fn mbedtls_sha256_finish(
    ctx: *mut mbedtls_sha256_context,
    output: *mut c_uchar
) -> c_int
Expand description

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

\param ctx The SHA-256 context. This must be initialized and have a hash operation started. \param output The SHA-224 or SHA-256 checksum result. This must be a writable buffer of length \c 32 bytes for SHA-256, \c 28 bytes for SHA-224.

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