mbedtls_pk_verify_restartable() function
Restartable version of \c mbedtls_pk_verify()
Arguments
ctx
The PK context to use. It must have been set up.
md_alg
Hash algorithm used (see notes)
hash
Hash of the message to sign
hash_len
Hash length or 0 (see notes)
rs_ctx
Restart context (NULL to disable restart)
Return value
See \c mbedtls_pk_verify(), or #MBEDTLS_ERR_ECP_IN_PROGRESS if maximum number of operations was reached: see \c mbedtls_ecp_set_max_ops().
Notes
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().