mbedtls_sha512_finish() 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 for SHA-512, \c 48 bytes for SHA-384.
Return value
\c 0 on success. A negative error code on failure.
Examples
mbedtls_sha512_finish() is referenced by 1 libraries and example projects: