Lines Matching refs:rs_ctx

2422                                      mbedtls_x509_crt_restart_ctx *rs_ctx )  in x509_crt_check_signature()  argument
2458 if( rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA ) in x509_crt_check_signature()
2462 child->sig.p, child->sig.len, &rs_ctx->pk ) ); in x509_crt_check_signature()
2465 (void) rs_ctx; in x509_crt_check_signature()
2559 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_find_parent_in() argument
2567 if( rs_ctx != NULL && rs_ctx->parent != NULL ) in x509_crt_find_parent_in()
2570 parent = rs_ctx->parent; in x509_crt_find_parent_in()
2571 fallback_parent = rs_ctx->fallback_parent; in x509_crt_find_parent_in()
2572 fallback_signature_is_good = rs_ctx->fallback_signature_is_good; in x509_crt_find_parent_in()
2575 rs_ctx->parent = NULL; in x509_crt_find_parent_in()
2576 rs_ctx->fallback_parent = NULL; in x509_crt_find_parent_in()
2577 rs_ctx->fallback_signature_is_good = 0; in x509_crt_find_parent_in()
2604 ret = x509_crt_check_signature( child, parent, rs_ctx ); in x509_crt_find_parent_in()
2607 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_find_parent_in()
2610 rs_ctx->parent = parent; in x509_crt_find_parent_in()
2611 rs_ctx->fallback_parent = fallback_parent; in x509_crt_find_parent_in()
2612 rs_ctx->fallback_signature_is_good = fallback_signature_is_good; in x509_crt_find_parent_in()
2682 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_find_parent() argument
2691 if( rs_ctx != NULL && rs_ctx->parent_is_trusted != -1 ) in x509_crt_find_parent()
2693 *parent_is_trusted = rs_ctx->parent_is_trusted; in x509_crt_find_parent()
2694 rs_ctx->parent_is_trusted = -1; in x509_crt_find_parent()
2704 path_cnt, self_cnt, rs_ctx ); in x509_crt_find_parent()
2707 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_find_parent()
2710 rs_ctx->parent_is_trusted = *parent_is_trusted; in x509_crt_find_parent()
2813 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_verify_chain() argument
2830 if( rs_ctx != NULL && rs_ctx->in_progress == x509_crt_rs_find_parent ) in x509_crt_verify_chain()
2833 *ver_chain = rs_ctx->ver_chain; /* struct copy */ in x509_crt_verify_chain()
2834 self_cnt = rs_ctx->self_cnt; in x509_crt_verify_chain()
2913 ver_chain->len - 1, self_cnt, rs_ctx ); in x509_crt_verify_chain()
2916 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_verify_chain()
2919 rs_ctx->in_progress = x509_crt_rs_find_parent; in x509_crt_verify_chain()
2920 rs_ctx->self_cnt = self_cnt; in x509_crt_verify_chain()
2921 rs_ctx->ver_chain = *ver_chain; /* struct copy */ in x509_crt_verify_chain()
3111 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_verify_restartable_ca_cb() argument
3144 &ver_chain, rs_ctx ); in x509_crt_verify_restartable_ca_cb()
3164 if( rs_ctx != NULL && ret != MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_verify_restartable_ca_cb()
3165 mbedtls_x509_crt_restart_free( rs_ctx ); in x509_crt_verify_restartable_ca_cb()
3248 mbedtls_x509_crt_restart_ctx *rs_ctx ) in mbedtls_x509_crt_verify_restartable() argument
3253 f_vrfy, p_vrfy, rs_ctx ) ); in mbedtls_x509_crt_verify_restartable()