mbedtls_sha1_finish_ret() function
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.
Arguments
ctx
The SHA-1 context to use. This must be initialized and have a hash operation started.
output
The SHA-1 checksum result. This must be a writable buffer of length \c 20 Bytes.
Return value
\c 0 on success. A negative error code on failure.