Lines Matching refs:profile
173 static int x509_profile_check_md_alg(const mbedtls_x509_crt_profile *profile, in x509_profile_check_md_alg() argument
180 if ((profile->allowed_mds & MBEDTLS_X509_ID_FLAG(md_alg)) != 0) { in x509_profile_check_md_alg()
191 static int x509_profile_check_pk_alg(const mbedtls_x509_crt_profile *profile, in x509_profile_check_pk_alg() argument
198 if ((profile->allowed_pks & MBEDTLS_X509_ID_FLAG(pk_alg)) != 0) { in x509_profile_check_pk_alg()
209 static int x509_profile_check_key(const mbedtls_x509_crt_profile *profile, in x509_profile_check_key() argument
216 if (mbedtls_pk_get_bitlen(pk) >= profile->rsa_min_bitlen) { in x509_profile_check_key()
234 if ((profile->allowed_curves & MBEDTLS_X509_ID_FLAG(gid)) != 0) { in x509_profile_check_key()
2012 const mbedtls_x509_crt_profile *profile, in x509_crt_verifycrl() argument
2047 if (x509_profile_check_md_alg(profile, crl_list->sig_md) != 0) { in x509_crt_verifycrl()
2051 if (x509_profile_check_pk_alg(profile, crl_list->sig_pk) != 0) { in x509_crt_verifycrl()
2080 if (x509_profile_check_key(profile, &ca->pk) != 0) { in x509_crt_verifycrl()
2512 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_chain() argument
2582 if (x509_profile_check_md_alg(profile, child->sig_md) != 0) { in x509_crt_verify_chain()
2586 if (x509_profile_check_pk_alg(profile, child->sig_pk) != 0) { in x509_crt_verify_chain()
2669 if (x509_profile_check_key(profile, &parent->pk) != 0) { in x509_crt_verify_chain()
2675 *flags |= x509_crt_verifycrl(child, parent, ca_crl, profile, &now); in x509_crt_verify_chain()
3060 const mbedtls_x509_crt_profile *profile, in x509_crt_verify_restartable_ca_cb() argument
3078 if (profile == NULL) { in x509_crt_verify_restartable_ca_cb()
3091 if (x509_profile_check_pk_alg(profile, pk_type) != 0) { in x509_crt_verify_restartable_ca_cb()
3095 if (x509_profile_check_key(profile, &crt->pk) != 0) { in x509_crt_verify_restartable_ca_cb()
3101 f_ca_cb, p_ca_cb, profile, in x509_crt_verify_restartable_ca_cb()
3171 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_profile() argument
3178 profile, cn, flags, in mbedtls_x509_crt_verify_with_profile()
3190 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_with_ca_cb() argument
3197 profile, cn, flags, in mbedtls_x509_crt_verify_with_ca_cb()
3205 const mbedtls_x509_crt_profile *profile, in mbedtls_x509_crt_verify_restartable() argument
3213 profile, cn, flags, in mbedtls_x509_crt_verify_restartable()