Function esp_idf_sys::mbedtls_pk_verify_restartable
source ยท pub unsafe extern "C" fn mbedtls_pk_verify_restartable(
ctx: *mut mbedtls_pk_context,
md_alg: mbedtls_md_type_t,
hash: *const c_uchar,
hash_len: usize,
sig: *const c_uchar,
sig_len: usize,
rs_ctx: *mut mbedtls_pk_restart_ctx,
) -> c_int
Expand description
\brief Restartable version of \c mbedtls_pk_verify()
\note Performs the same job as \c mbedtls_pk_verify(), but can return early and restart according to the limit set with \c mbedtls_ecp_set_max_ops() to reduce blocking for ECC operations. For RSA, same as \c mbedtls_pk_verify().
\param ctx The PK context to use. It must have been set up. \param md_alg Hash algorithm used (see notes) \param hash Hash of the message to sign \param hash_len Hash length or 0 (see notes) \param sig Signature to verify \param sig_len Signature length \param rs_ctx Restart context (NULL to disable restart)
\return See \c mbedtls_pk_verify(), or \return #MBEDTLS_ERR_ECP_IN_PROGRESS if maximum number of operations was reached: see \c mbedtls_ecp_set_max_ops().