Lines Matching refs:profile

184 static int x509_profile_check_md_alg( const mbedtls_x509_crt_profile *profile,  in x509_profile_check_md_alg()  argument
190 if( ( profile->allowed_mds & MBEDTLS_X509_ID_FLAG( md_alg ) ) != 0 ) in x509_profile_check_md_alg()
200 static int x509_profile_check_pk_alg( const mbedtls_x509_crt_profile *profile, in x509_profile_check_pk_alg() argument
206 if( ( profile->allowed_pks & MBEDTLS_X509_ID_FLAG( pk_alg ) ) != 0 ) in x509_profile_check_pk_alg()
216 static int x509_profile_check_key( const mbedtls_x509_crt_profile *profile, in x509_profile_check_key() argument
224 if( mbedtls_pk_get_bitlen( pk ) >= profile->rsa_min_bitlen ) in x509_profile_check_key()
241 if( ( profile->allowed_curves & MBEDTLS_X509_ID_FLAG( gid ) ) != 0 ) in x509_profile_check_key()
2336 const mbedtls_x509_crt_profile *profile ) in x509_crt_verifycrl() argument
2367 if( x509_profile_check_md_alg( profile, crl_list->sig_md ) != 0 ) in x509_crt_verifycrl()
2370 if( x509_profile_check_pk_alg( profile, crl_list->sig_pk ) != 0 ) in x509_crt_verifycrl()
2381 if( x509_profile_check_key( profile, &ca->pk ) != 0 ) in x509_crt_verifycrl()
2811 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_chain() argument
2870 if( x509_profile_check_md_alg( profile, child->sig_md ) != 0 ) in x509_crt_verify_chain()
2873 if( x509_profile_check_pk_alg( profile, child->sig_pk ) != 0 ) in x509_crt_verify_chain()
2959 if( x509_profile_check_key( profile, &parent->pk ) != 0 ) in x509_crt_verify_chain()
2964 *flags |= x509_crt_verifycrl( child, parent, ca_crl, profile ); in x509_crt_verify_chain()
3107 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_restartable_ca_cb() argument
3122 if( profile == NULL ) in x509_crt_verify_restartable_ca_cb()
3135 if( x509_profile_check_pk_alg( profile, pk_type ) != 0 ) in x509_crt_verify_restartable_ca_cb()
3138 if( x509_profile_check_key( profile, &crt->pk ) != 0 ) in x509_crt_verify_restartable_ca_cb()
3143 f_ca_cb, p_ca_cb, profile, in x509_crt_verify_restartable_ca_cb()
3210 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_profile() argument
3217 profile, cn, flags, in mbedtls_x509_crt_verify_with_profile()
3229 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_ca_cb() argument
3236 profile, cn, flags, in mbedtls_x509_crt_verify_with_ca_cb()
3244 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_restartable() argument
3252 profile, cn, flags, in mbedtls_x509_crt_verify_restartable()