Lines Matching refs:child

2426 static int x509_crt_check_signature( const mbedtls_x509_crt *child,  in x509_crt_check_signature()  argument
2434 md_info = mbedtls_md_info_from_type( child->sig_md ); in x509_crt_check_signature()
2438 if( mbedtls_md( md_info, child->tbs.p, child->tbs.len, hash ) != 0 ) in x509_crt_check_signature()
2442 psa_algorithm_t hash_alg = mbedtls_psa_translate_md( child->sig_md ); in x509_crt_check_signature()
2447 if( psa_hash_update( &hash_operation, child->tbs.p, child->tbs.len ) in x509_crt_check_signature()
2460 if( ! mbedtls_pk_can_do( &parent->pk, child->sig_pk ) ) in x509_crt_check_signature()
2464 if( rs_ctx != NULL && child->sig_pk == MBEDTLS_PK_ECDSA ) in x509_crt_check_signature()
2467 child->sig_md, hash, hash_len, in x509_crt_check_signature()
2468 child->sig.p, child->sig.len, &rs_ctx->pk ) ); in x509_crt_check_signature()
2474 return( mbedtls_pk_verify_ext( child->sig_pk, child->sig_opts, &parent->pk, in x509_crt_check_signature()
2475 child->sig_md, hash, hash_len, in x509_crt_check_signature()
2476 child->sig.p, child->sig.len ) ); in x509_crt_check_signature()
2485 static int x509_crt_check_parent( const mbedtls_x509_crt *child, in x509_crt_check_parent() argument
2492 if( x509_name_cmp( &child->issuer, &parent->subject ) != 0 ) in x509_crt_check_parent()
2560 mbedtls_x509_crt *child, in x509_crt_find_parent_in() argument
2598 if( x509_crt_check_parent( child, parent, top ) != 0 ) in x509_crt_find_parent_in()
2612 ret = x509_crt_check_signature( child, parent, rs_ctx ); in x509_crt_find_parent_in()
2683 mbedtls_x509_crt *child, in x509_crt_find_parent() argument
2707 search_list = *parent_is_trusted ? trust_ca : child->next; in x509_crt_find_parent()
2709 ret = x509_crt_find_parent_in( child, search_list, in x509_crt_find_parent()
2828 mbedtls_x509_crt *child; in x509_crt_verify_chain() local
2846 child = cur->crt; in x509_crt_verify_chain()
2853 child = crt; in x509_crt_verify_chain()
2861 cur->crt = child; in x509_crt_verify_chain()
2867 if( mbedtls_x509_time_is_past( &child->valid_to ) ) in x509_crt_verify_chain()
2870 if( mbedtls_x509_time_is_future( &child->valid_from ) ) in x509_crt_verify_chain()
2878 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_chain()
2881 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_chain()
2886 x509_crt_check_ee_locally_trusted( child, trust_ca ) == 0 ) in x509_crt_verify_chain()
2904 ret = f_ca_cb( p_ca_cb, child, &ver_chain->trust_ca_cb_result ); in x509_crt_verify_chain()
2919 ret = x509_crt_find_parent( child, cur_trust_ca, &parent, in x509_crt_verify_chain()
2948 x509_name_cmp( &child->issuer, &child->subject ) == 0 ) in x509_crt_verify_chain()
2972 *flags |= x509_crt_verifycrl( child, parent, ca_crl, profile ); in x509_crt_verify_chain()
2978 child = parent; in x509_crt_verify_chain()