Lines Matching refs:rs_ctx

2126                                     mbedtls_x509_crt_restart_ctx *rs_ctx)  in x509_crt_check_signature()  argument
2160 if (rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA) { in x509_crt_check_signature()
2163 child->sig.p, child->sig.len, &rs_ctx->pk); in x509_crt_check_signature()
2166 (void) rs_ctx; in x509_crt_check_signature()
2262 mbedtls_x509_crt_restart_ctx *rs_ctx, in x509_crt_find_parent_in() argument
2271 if (rs_ctx != NULL && rs_ctx->parent != NULL) { in x509_crt_find_parent_in()
2273 parent = rs_ctx->parent; in x509_crt_find_parent_in()
2274 fallback_parent = rs_ctx->fallback_parent; in x509_crt_find_parent_in()
2275 fallback_signature_is_good = rs_ctx->fallback_signature_is_good; in x509_crt_find_parent_in()
2278 rs_ctx->parent = NULL; in x509_crt_find_parent_in()
2279 rs_ctx->fallback_parent = NULL; in x509_crt_find_parent_in()
2280 rs_ctx->fallback_signature_is_good = 0; in x509_crt_find_parent_in()
2306 ret = x509_crt_check_signature(child, parent, rs_ctx); in x509_crt_find_parent_in()
2309 if (rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS) { in x509_crt_find_parent_in()
2311 rs_ctx->parent = parent; in x509_crt_find_parent_in()
2312 rs_ctx->fallback_parent = fallback_parent; in x509_crt_find_parent_in()
2313 rs_ctx->fallback_signature_is_good = fallback_signature_is_good; in x509_crt_find_parent_in()
2385 mbedtls_x509_crt_restart_ctx *rs_ctx, in x509_crt_find_parent() argument
2395 if (rs_ctx != NULL && rs_ctx->parent_is_trusted != -1) { in x509_crt_find_parent()
2396 *parent_is_trusted = rs_ctx->parent_is_trusted; in x509_crt_find_parent()
2397 rs_ctx->parent_is_trusted = -1; in x509_crt_find_parent()
2407 path_cnt, self_cnt, rs_ctx, now); in x509_crt_find_parent()
2410 if (rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS) { in x509_crt_find_parent()
2412 rs_ctx->parent_is_trusted = *parent_is_trusted; in x509_crt_find_parent()
2514 mbedtls_x509_crt_restart_ctx *rs_ctx) in x509_crt_verify_chain() argument
2538 if (rs_ctx != NULL && rs_ctx->in_progress == x509_crt_rs_find_parent) { in x509_crt_verify_chain()
2540 *ver_chain = rs_ctx->ver_chain; /* struct copy */ in x509_crt_verify_chain()
2541 self_cnt = rs_ctx->self_cnt; in x509_crt_verify_chain()
2625 ver_chain->len - 1, self_cnt, rs_ctx, in x509_crt_verify_chain()
2629 if (rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS) { in x509_crt_verify_chain()
2631 rs_ctx->in_progress = x509_crt_rs_find_parent; in x509_crt_verify_chain()
2632 rs_ctx->self_cnt = self_cnt; in x509_crt_verify_chain()
2633 rs_ctx->ver_chain = *ver_chain; /* struct copy */ in x509_crt_verify_chain()
3067 mbedtls_x509_crt_restart_ctx *rs_ctx) in x509_crt_verify_restartable_ca_cb() argument
3102 &ver_chain, rs_ctx); in x509_crt_verify_restartable_ca_cb()
3123 if (rs_ctx != NULL && ret != MBEDTLS_ERR_ECP_IN_PROGRESS) { in x509_crt_verify_restartable_ca_cb()
3124 mbedtls_x509_crt_restart_free(rs_ctx); in x509_crt_verify_restartable_ca_cb()
3209 mbedtls_x509_crt_restart_ctx *rs_ctx) in mbedtls_x509_crt_verify_restartable() argument
3214 f_vrfy, p_vrfy, rs_ctx); in mbedtls_x509_crt_verify_restartable()