Lines Matching refs:profile
163 static int x509_profile_check_md_alg( const mbedtls_x509_crt_profile *profile, in x509_profile_check_md_alg() argument
169 if( ( profile->allowed_mds & MBEDTLS_X509_ID_FLAG( md_alg ) ) != 0 ) in x509_profile_check_md_alg()
179 static int x509_profile_check_pk_alg( const mbedtls_x509_crt_profile *profile, in x509_profile_check_pk_alg() argument
185 if( ( profile->allowed_pks & MBEDTLS_X509_ID_FLAG( pk_alg ) ) != 0 ) in x509_profile_check_pk_alg()
195 static int x509_profile_check_key( const mbedtls_x509_crt_profile *profile, in x509_profile_check_key() argument
203 if( mbedtls_pk_get_bitlen( pk ) >= profile->rsa_min_bitlen ) in x509_profile_check_key()
220 if( ( profile->allowed_curves & MBEDTLS_X509_ID_FLAG( gid ) ) != 0 ) in x509_profile_check_key()
1952 const mbedtls_x509_crt_profile *profile ) in x509_crt_verifycrl() argument
1985 if( x509_profile_check_md_alg( profile, crl_list->sig_md ) != 0 ) in x509_crt_verifycrl()
1988 if( x509_profile_check_pk_alg( profile, crl_list->sig_pk ) != 0 ) in x509_crt_verifycrl()
1999 if( x509_profile_check_key( profile, &ca->pk ) != 0 ) in x509_crt_verifycrl()
2412 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_chain() argument
2470 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_chain()
2473 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_chain()
2535 if( x509_profile_check_key( profile, &parent->pk ) != 0 ) in x509_crt_verify_chain()
2540 *flags |= x509_crt_verifycrl( child, parent, ca_crl, profile ); in x509_crt_verify_chain()
2663 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_profile() argument
2669 profile, cn, flags, f_vrfy, p_vrfy, NULL ) ); in mbedtls_x509_crt_verify_with_profile()
2685 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_restartable() argument
2700 if( profile == NULL ) in mbedtls_x509_crt_verify_restartable()
2713 if( x509_profile_check_pk_alg( profile, pk_type ) != 0 ) in mbedtls_x509_crt_verify_restartable()
2716 if( x509_profile_check_key( profile, &crt->pk ) != 0 ) in mbedtls_x509_crt_verify_restartable()
2720 ret = x509_crt_verify_chain( crt, trust_ca, ca_crl, profile, in mbedtls_x509_crt_verify_restartable()