Home
last modified time | relevance | path

Searched refs:pk_type (Results 1 – 10 of 10) sorted by relevance

/mbedtls-3.7.0/library/
Dpkwrite.c383 mbedtls_pk_type_t pk_type = mbedtls_pk_get_type(pk); in pk_get_type_ext() local
386 if (pk_type == MBEDTLS_PK_OPAQUE) { in pk_get_type_ext()
405 return pk_type; in pk_get_type_ext()
443 mbedtls_pk_type_t pk_type; in mbedtls_pk_write_pubkey_der() local
469 pk_type = pk_get_type_ext(key); in mbedtls_pk_write_pubkey_der()
488 ret = mbedtls_oid_get_oid_by_pk_alg(pk_type, &oid, &oid_len); in mbedtls_pk_write_pubkey_der()
Dpk.c114 const mbedtls_pk_info_t *mbedtls_pk_info_from_type(mbedtls_pk_type_t pk_type) in mbedtls_pk_info_from_type() argument
116 switch (pk_type) { in mbedtls_pk_info_from_type()
408 mbedtls_pk_type_t pk_type = mbedtls_pk_get_type(pk); in mbedtls_pk_get_psa_attributes() local
424 switch (pk_type) { in mbedtls_pk_get_psa_attributes()
465 int sign_ok = (pk_type != MBEDTLS_PK_ECKEY_DH); in mbedtls_pk_get_psa_attributes()
466 int derive_ok = (pk_type != MBEDTLS_PK_ECDSA); in mbedtls_pk_get_psa_attributes()
1300 int mbedtls_pk_sign_ext(mbedtls_pk_type_t pk_type, in mbedtls_pk_sign_ext() argument
1312 if (!mbedtls_pk_can_do(ctx, pk_type)) { in mbedtls_pk_sign_ext()
1316 if (pk_type != MBEDTLS_PK_RSASSA_PSS) { in mbedtls_pk_sign_ext()
Dssl_misc.h2475 uint16_t sig_alg, mbedtls_pk_type_t *pk_type, mbedtls_md_type_t *md_alg) in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg() argument
2477 *pk_type = mbedtls_ssl_pk_alg_from_sig(sig_alg & 0xff); in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg()
2480 if (*pk_type != MBEDTLS_PK_NONE && *md_alg != MBEDTLS_MD_NONE) { in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg()
2489 *pk_type = MBEDTLS_PK_RSASSA_PSS; in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg()
2495 *pk_type = MBEDTLS_PK_RSASSA_PSS; in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg()
2501 *pk_type = MBEDTLS_PK_RSASSA_PSS; in mbedtls_ssl_get_pk_type_and_md_alg_from_sig_alg()
Dssl_tls13_generic.c958 mbedtls_pk_type_t pk_type = (mbedtls_pk_type_t) mbedtls_ssl_sig_from_pk(key); in mbedtls_ssl_tls13_check_sig_alg_cert_key_match() local
961 switch (pk_type) { in mbedtls_ssl_tls13_check_sig_alg_cert_key_match()
1053 mbedtls_pk_type_t pk_type = MBEDTLS_PK_NONE; in ssl_tls13_write_certificate_verify_body() local
1072 *sig_alg, &pk_type, &md_alg) != 0) { in ssl_tls13_write_certificate_verify_body()
1089 if ((ret = mbedtls_pk_sign_ext(pk_type, own_key, in ssl_tls13_write_certificate_verify_body()
Dx509_crt.c3068 mbedtls_pk_type_t pk_type; in x509_crt_verify_restartable_ca_cb() local
3087 pk_type = mbedtls_pk_get_type(&crt->pk); in x509_crt_verify_restartable_ca_cb()
3089 if (x509_profile_check_pk_alg(profile, pk_type) != 0) { in x509_crt_verify_restartable_ca_cb()
Dssl_tls12_server.c2594 mbedtls_pk_type_t pk_type; in ssl_get_ecdh_params_from_cert() local
2611 pk_type = mbedtls_pk_get_type(pk); in ssl_get_ecdh_params_from_cert()
2613 switch (pk_type) { in ssl_get_ecdh_params_from_cert()
2634 if (pk_type == MBEDTLS_PK_OPAQUE) { in ssl_get_ecdh_params_from_cert()
/mbedtls-3.7.0/tests/suites/
Dtest_suite_pk.function440 static int pk_setup_for_type(mbedtls_pk_type_t pk_type, int want_pair,
443 if (pk_type == MBEDTLS_PK_NONE) {
446 TEST_EQUAL(mbedtls_pk_setup(pk, mbedtls_pk_info_from_type(pk_type)), 0);
448 switch (pk_type) {
818 mbedtls_pk_type_t pk_type = 0;
836 mbedtls_pk_verify_ext(pk_type, NULL,
841 mbedtls_pk_verify_ext(pk_type, NULL,
858 mbedtls_pk_sign_ext(pk_type, &ctx, MBEDTLS_MD_NONE,
863 mbedtls_pk_sign_ext(pk_type, &ctx, MBEDTLS_MD_SHA256,
1157 int pk_type, int mgf1_hash_id,
[all …]
Dtest_suite_pk.data761 # There is a (negative) test for pk_type=MBEDTLS_PK_RSA_ALT in pk_rsa_alt().
/mbedtls-3.7.0/include/mbedtls/
Dpk.h302 const mbedtls_pk_info_t *mbedtls_pk_info_from_type(mbedtls_pk_type_t pk_type);
875 int mbedtls_pk_sign_ext(mbedtls_pk_type_t pk_type,
/mbedtls-3.7.0/tests/src/
Dpsa_exercise_key.c1252 mbedtls_pk_type_t pk_type = mbedtls_pk_get_type(pk); in mbedtls_test_key_consistency_psa_pk() local
1262 switch (pk_type) { in mbedtls_test_key_consistency_psa_pk()