mbedtls_sha512_starts() function
This function starts a SHA-384 or SHA-512 checksum calculation.
Arguments
ctx
The SHA-512 context to use. This must be initialized.
is384
Determines which function to use. This must be either \c 0 for SHA-512, or \c 1 for SHA-384.
Return value
\c 0 on success. A negative error code on failure.
Notes
is384 must be defined accordingly to the enabled MBEDTLS_SHA384_C/MBEDTLS_SHA512_C symbols otherwise the function will return #MBEDTLS_ERR_SHA512_BAD_INPUT_DATA.
mbedtls_sha512_starts() is called by 5 functions and calls 2 functions:
![]()
mbedtls_sha512_starts()
mbedtls_sha512_starts() reads 5 variables and writes 2 variables:
![]()
mbedtls_sha512_starts()