Function esp_idf_sys::mbedtls_sha512_starts
source ยท pub unsafe extern "C" fn mbedtls_sha512_starts(
ctx: *mut mbedtls_sha512_context,
is384: c_int,
) -> c_int
Expand description
\brief This function starts a SHA-384 or SHA-512 checksum calculation.
\param ctx The SHA-512 context to use. This must be initialized. \param is384 Determines which function to use. This must be either \c 0 for SHA-512, or \c 1 for SHA-384.
\note 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.
\return \c 0 on success. \return A negative error code on failure.