Function esp_idf_sys::mbedtls_ecp_check_budget

source ยท
pub unsafe extern "C" fn mbedtls_ecp_check_budget(
    grp: *const mbedtls_ecp_group,
    rs_ctx: *mut mbedtls_ecp_restart_ctx,
    ops: c_uint,
) -> c_int
Expand description

\brief Internal; for restartable functions in other modules. Check and update basic ops budget.

\param grp Group structure \param rs_ctx Restart context \param ops Number of basic ops to do

\return \c 0 if doing \p ops basic ops is still allowed, \return #MBEDTLS_ERR_ECP_IN_PROGRESS otherwise.