Home
last modified time | relevance | path

Searched refs:mbedtls_pk_can_do (Results 1 - 12 of 12) sorted by relevance

/third_party/mbedtls/library/
H A Dx509write_csr.c234 if (mbedtls_pk_can_do(ctx->key, MBEDTLS_PK_RSA)) { in x509write_csr_der_internal()
236 } else if (mbedtls_pk_can_do(ctx->key, MBEDTLS_PK_ECDSA)) { in x509write_csr_der_internal()
H A Dx509write_crt.c446 if (mbedtls_pk_can_do(ctx->issuer_key, MBEDTLS_PK_RSA)) { in mbedtls_x509write_crt_der()
448 } else if (mbedtls_pk_can_do(ctx->issuer_key, MBEDTLS_PK_ECDSA)) { in mbedtls_x509write_crt_der()
H A Dpk.c231 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type) in mbedtls_pk_can_do() function
1116 if (!mbedtls_pk_can_do(ctx, type)) { in mbedtls_pk_verify_ext()
1312 if (!mbedtls_pk_can_do(ctx, pk_type)) { in mbedtls_pk_sign_ext()
H A Dssl_tls12_server.c743 key_type_matches = mbedtls_pk_can_do(&cur->cert->pk, pk_alg); in ssl_pick_cert()
2620 if (!mbedtls_pk_can_do(pk, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()
2741 if (!mbedtls_pk_can_do(private_key, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()
3507 if (!mbedtls_pk_can_do(private_key, MBEDTLS_PK_RSA)) { in ssl_decrypt_encrypted_pms()
4206 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_certificate_verify()
H A Dssl_tls12_client.c1955 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_RSA)) { in ssl_write_encrypted_pms()
2004 if (!mbedtls_pk_can_do(peer_pk, MBEDTLS_PK_ECKEY)) { in ssl_get_ecdh_params_from_cert()
2335 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_server_key_exchange()
2391 if (!mbedtls_pk_can_do(peer_pk, pk_alg)) { in ssl_parse_server_key_exchange()
H A Dssl_tls13_generic.c284 if (!mbedtls_pk_can_do(&ssl->session_negotiate->peer_cert->pk, sig_alg)) { in ssl_tls13_parse_certificate_verify()
H A Dx509_crt.c2153 if (!mbedtls_pk_can_do(&parent->pk, child->sig_pk)) { in x509_crt_check_signature()
H A Dssl_tls.c6072 if (mbedtls_pk_can_do(pk, MBEDTLS_PK_RSA)) { in mbedtls_ssl_sig_from_pk()
6077 if (mbedtls_pk_can_do(pk, MBEDTLS_PK_ECDSA)) { in mbedtls_ssl_sig_from_pk()
8026 if (mbedtls_pk_can_do(pk, MBEDTLS_PK_ECKEY)) { in ssl_parse_certificate_verify()
/third_party/mbedtls/programs/pkey/
H A Drsa_sign_pss.c94 if (!mbedtls_pk_can_do(&pk, MBEDTLS_PK_RSA)) { in main()
H A Drsa_verify_pss.c77 if (!mbedtls_pk_can_do(&pk, MBEDTLS_PK_RSA)) { in main()
/third_party/mbedtls/include/mbedtls/
H A Dpk.h448 int mbedtls_pk_can_do(const mbedtls_pk_context *ctx, mbedtls_pk_type_t type);
1095 * specific key type, check the result with mbedtls_pk_can_do().
1126 * specific key type, check the result with mbedtls_pk_can_do().
1160 * specific key type, check the result with mbedtls_pk_can_do().
1181 * mbedtls_pk_can_do().
/third_party/curl/lib/vtls/
H A Dmbedtls.c527 if(ret == 0 && !(mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_RSA) || in mbed_connect_step1()
528 mbedtls_pk_can_do(&backend->pk, MBEDTLS_PK_ECKEY))) in mbed_connect_step1()

Completed in 32 milliseconds