Function esp_idf_svc::sys::mbedtls_sha1_update
source ยท pub unsafe extern "C" fn mbedtls_sha1_update(
ctx: *mut mbedtls_sha1_context,
input: *const u8,
ilen: usize,
) -> i32
Expand description
\brief This function feeds an input buffer into an ongoing SHA-1 checksum calculation.
\warning SHA-1 is considered a weak message digest and its use constitutes a security risk. We recommend considering stronger message digests instead.
\param ctx The SHA-1 context. This must be initialized and have a hash operation started. \param input The buffer holding the input data. This must be a readable buffer of length \p ilen Bytes. \param ilen The length of the input data \p input in Bytes.
\return \c 0 on success. \return A negative error code on failure.