Lines Matching refs:pk
210 const mbedtls_pk_context *pk) in x509_profile_check_key() argument
212 const mbedtls_pk_type_t pk_alg = mbedtls_pk_get_type(pk); in x509_profile_check_key()
216 if (mbedtls_pk_get_bitlen(pk) >= profile->rsa_min_bitlen) { in x509_profile_check_key()
228 const mbedtls_ecp_group_id gid = mbedtls_pk_get_ec_group_id(pk); in x509_profile_check_key()
1227 if ((ret = mbedtls_pk_parse_subpubkey(&p, end, &crt->pk)) != 0) { in x509_crt_parse_der_core()
1812 mbedtls_pk_get_name(&crt->pk))) != 0) { in mbedtls_x509_crt_info()
1817 (int) mbedtls_pk_get_bitlen(&crt->pk)); in mbedtls_x509_crt_info()
2080 if (x509_profile_check_key(profile, &ca->pk) != 0) { in x509_crt_verifycrl()
2084 if (mbedtls_pk_verify_ext(crl_list->sig_pk, crl_list->sig_opts, &ca->pk, in x509_crt_verifycrl()
2155 if (!mbedtls_pk_can_do(&parent->pk, child->sig_pk)) { in x509_crt_check_signature()
2161 return mbedtls_pk_verify_restartable(&parent->pk, in x509_crt_check_signature()
2163 child->sig.p, child->sig.len, &rs_ctx->pk); in x509_crt_check_signature()
2169 return mbedtls_pk_verify_ext(child->sig_pk, child->sig_opts, &parent->pk, in x509_crt_check_signature()
2669 if (x509_profile_check_key(profile, &parent->pk) != 0) { in x509_crt_verify_chain()
3089 pk_type = mbedtls_pk_get_type(&crt->pk); in x509_crt_verify_restartable_ca_cb()
3095 if (x509_profile_check_key(profile, &crt->pk) != 0) { in x509_crt_verify_restartable_ca_cb()
3235 mbedtls_pk_free(&cert_cur->pk); in mbedtls_x509_crt_free()
3268 mbedtls_pk_restart_init(&ctx->pk); in mbedtls_x509_crt_restart_init()
3290 mbedtls_pk_restart_free(&ctx->pk); in mbedtls_x509_crt_restart_free()