Function esp_idf_svc::sys::mbedtls_sha256_starts
source ยท pub unsafe extern "C" fn mbedtls_sha256_starts(
ctx: *mut mbedtls_sha256_context,
is224: i32,
) -> i32
Expand description
\brief This function starts a SHA-224 or SHA-256 checksum calculation.
\param ctx The context to use. This must be initialized. \param is224 This determines which function to use. This must be either \c 0 for SHA-256, or \c 1 for SHA-224.
\note is224 must be defined accordingly to the enabled MBEDTLS_SHA224_C/MBEDTLS_SHA256_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.