mbedtls_sha256_finish_ret() function
This function finishes the SHA-256 operation, and writes the result to the output buffer.
Arguments
ctx
The SHA-256 context. This must be initialized and have a hash operation started.
output
The SHA-224 or SHA-256 checksum result. This must be a writable buffer of length \c 32 Bytes.
Return value
\c 0 on success. A negative error code on failure.