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