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.
mbedtls_sha512_finish() is called by 5 functions and calls 7 functions:
![]()
mbedtls_sha512_finish()
mbedtls_sha512_finish() reads 8 variables and writes 1 variable:
![]()
mbedtls_sha512_finish()