Lines Matching refs:rs_ctx

2441                                      mbedtls_x509_crt_restart_ctx *rs_ctx )  in x509_crt_check_signature()  argument
2474 if( rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA ) in x509_crt_check_signature()
2478 child->sig.p, child->sig.len, &rs_ctx->pk ) ); in x509_crt_check_signature()
2481 (void) rs_ctx; in x509_crt_check_signature()
2575 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_find_parent_in() argument
2583 if( rs_ctx != NULL && rs_ctx->parent != NULL ) in x509_crt_find_parent_in()
2586 parent = rs_ctx->parent; in x509_crt_find_parent_in()
2587 fallback_parent = rs_ctx->fallback_parent; in x509_crt_find_parent_in()
2588 fallback_signature_is_good = rs_ctx->fallback_signature_is_good; in x509_crt_find_parent_in()
2591 rs_ctx->parent = NULL; in x509_crt_find_parent_in()
2592 rs_ctx->fallback_parent = NULL; in x509_crt_find_parent_in()
2593 rs_ctx->fallback_signature_is_good = 0; in x509_crt_find_parent_in()
2620 ret = x509_crt_check_signature( child, parent, rs_ctx ); in x509_crt_find_parent_in()
2623 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_find_parent_in()
2626 rs_ctx->parent = parent; in x509_crt_find_parent_in()
2627 rs_ctx->fallback_parent = fallback_parent; in x509_crt_find_parent_in()
2628 rs_ctx->fallback_signature_is_good = fallback_signature_is_good; in x509_crt_find_parent_in()
2698 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_find_parent() argument
2707 if( rs_ctx != NULL && rs_ctx->parent_is_trusted != -1 ) in x509_crt_find_parent()
2709 *parent_is_trusted = rs_ctx->parent_is_trusted; in x509_crt_find_parent()
2710 rs_ctx->parent_is_trusted = -1; in x509_crt_find_parent()
2720 path_cnt, self_cnt, rs_ctx ); in x509_crt_find_parent()
2723 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_find_parent()
2726 rs_ctx->parent_is_trusted = *parent_is_trusted; in x509_crt_find_parent()
2829 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_verify_chain() argument
2846 if( rs_ctx != NULL && rs_ctx->in_progress == x509_crt_rs_find_parent ) in x509_crt_verify_chain()
2849 *ver_chain = rs_ctx->ver_chain; /* struct copy */ in x509_crt_verify_chain()
2850 self_cnt = rs_ctx->self_cnt; in x509_crt_verify_chain()
2929 ver_chain->len - 1, self_cnt, rs_ctx ); in x509_crt_verify_chain()
2932 if( rs_ctx != NULL && ret == MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_verify_chain()
2935 rs_ctx->in_progress = x509_crt_rs_find_parent; in x509_crt_verify_chain()
2936 rs_ctx->self_cnt = self_cnt; in x509_crt_verify_chain()
2937 rs_ctx->ver_chain = *ver_chain; /* struct copy */ in x509_crt_verify_chain()
3127 mbedtls_x509_crt_restart_ctx *rs_ctx ) in x509_crt_verify_restartable_ca_cb() argument
3160 &ver_chain, rs_ctx ); in x509_crt_verify_restartable_ca_cb()
3180 if( rs_ctx != NULL && ret != MBEDTLS_ERR_ECP_IN_PROGRESS ) in x509_crt_verify_restartable_ca_cb()
3181 mbedtls_x509_crt_restart_free( rs_ctx ); in x509_crt_verify_restartable_ca_cb()
3264 mbedtls_x509_crt_restart_ctx *rs_ctx ) in mbedtls_x509_crt_verify_restartable() argument
3269 f_vrfy, p_vrfy, rs_ctx ) ); in mbedtls_x509_crt_verify_restartable()