Lines Matching refs:profile
149 static int x509_profile_check_md_alg( const mbedtls_x509_crt_profile *profile, in x509_profile_check_md_alg() argument
152 if( ( profile->allowed_mds & MBEDTLS_X509_ID_FLAG( md_alg ) ) != 0 ) in x509_profile_check_md_alg()
162 static int x509_profile_check_pk_alg( const mbedtls_x509_crt_profile *profile, in x509_profile_check_pk_alg() argument
165 if( ( profile->allowed_pks & MBEDTLS_X509_ID_FLAG( pk_alg ) ) != 0 ) in x509_profile_check_pk_alg()
175 static int x509_profile_check_key( const mbedtls_x509_crt_profile *profile, in x509_profile_check_key() argument
182 if( mbedtls_pk_get_bitlen( pk ) >= profile->rsa_min_bitlen ) in x509_profile_check_key()
196 if( ( profile->allowed_curves & MBEDTLS_X509_ID_FLAG( gid ) ) != 0 ) in x509_profile_check_key()
1631 const mbedtls_x509_crt_profile *profile ) in x509_crt_verifycrl() argument
1665 if( x509_profile_check_md_alg( profile, crl_list->sig_md ) != 0 ) in x509_crt_verifycrl()
1668 if( x509_profile_check_pk_alg( profile, crl_list->sig_pk ) != 0 ) in x509_crt_verifycrl()
1683 if( x509_profile_check_key( profile, crl_list->sig_pk, &ca->pk ) != 0 ) in x509_crt_verifycrl()
1897 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_top() argument
1914 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_top()
1917 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_top()
1983 if( x509_profile_check_key( profile, child->sig_pk, &trust_ca->pk ) != 0 ) in x509_crt_verify_top()
2001 *flags |= x509_crt_verifycrl( child, trust_ca, ca_crl, profile ); in x509_crt_verify_top()
2031 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_child() argument
2059 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_child()
2062 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_child()
2077 if( x509_profile_check_key( profile, child->sig_pk, &parent->pk ) != 0 ) in x509_crt_verify_child()
2090 *flags |= x509_crt_verifycrl(child, parent, ca_crl, profile ); in x509_crt_verify_child()
2105 ret = x509_crt_verify_top( parent, grandparent, ca_crl, profile, in x509_crt_verify_child()
2135 profile, path_cnt + 1, self_cnt, &parent_flags, in x509_crt_verify_child()
2142 ret = x509_crt_verify_top( parent, trust_ca, ca_crl, profile, in x509_crt_verify_child()
2181 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_profile() argument
2194 if( profile == NULL ) in mbedtls_x509_crt_verify_with_profile()
2254 if( x509_profile_check_pk_alg( profile, pk_type ) != 0 ) in mbedtls_x509_crt_verify_with_profile()
2257 if( x509_profile_check_key( profile, pk_type, &crt->pk ) != 0 ) in mbedtls_x509_crt_verify_with_profile()
2269 ret = x509_crt_verify_top( crt, parent, ca_crl, profile, in mbedtls_x509_crt_verify_with_profile()
2284 ret = x509_crt_verify_child( crt, parent, trust_ca, ca_crl, profile, in mbedtls_x509_crt_verify_with_profile()
2291 ret = x509_crt_verify_top( crt, trust_ca, ca_crl, profile, in mbedtls_x509_crt_verify_with_profile()