Home
last modified time | relevance | path

Searched refs:SSL_HANDSHAKE (Results 1 – 17 of 17) sorted by relevance

/external/boringssl/src/ssl/
Dinternal.h179 struct SSL_HANDSHAKE;
384 bool ssl_get_version_range(const SSL_HANDSHAKE *hs, uint16_t *out_min_version,
388 bool ssl_supports_version(SSL_HANDSHAKE *hs, uint16_t version);
396 bool ssl_add_supported_versions(SSL_HANDSHAKE *hs, CBB *cbb);
402 bool ssl_negotiate_version(SSL_HANDSHAKE *hs, uint8_t *out_alert,
915 bool ssl_has_private_key(const SSL_HANDSHAKE *hs);
924 SSL_HANDSHAKE *hs, uint8_t *out, size_t *out_len, size_t max_out,
927 enum ssl_private_key_result_t ssl_private_key_decrypt(SSL_HANDSHAKE *hs,
935 bool ssl_private_key_supports_signature_algorithm(SSL_HANDSHAKE *hs,
1168 bool ssl_has_certificate(const SSL_HANDSHAKE *hs);
[all …]
Dt1_lib.cc134 static bool ssl_check_clienthello_tlsext(SSL_HANDSHAKE *hs);
295 Span<const uint16_t> tls1_get_grouplist(const SSL_HANDSHAKE *hs) { in tls1_get_grouplist()
302 bool tls1_get_shared_group(SSL_HANDSHAKE *hs, uint16_t *out_group_id) { in tls1_get_shared_group()
392 bool tls1_check_group_id(const SSL_HANDSHAKE *hs, uint16_t group_id) { in tls1_check_group_id()
565 void (*init)(SSL_HANDSHAKE *hs);
567 bool (*add_clienthello)(SSL_HANDSHAKE *hs, CBB *out);
568 bool (*parse_serverhello)(SSL_HANDSHAKE *hs, uint8_t *out_alert,
571 bool (*parse_clienthello)(SSL_HANDSHAKE *hs, uint8_t *out_alert,
573 bool (*add_serverhello)(SSL_HANDSHAKE *hs, CBB *out);
576 static bool forbid_parse_serverhello(SSL_HANDSHAKE *hs, uint8_t *out_alert, in forbid_parse_serverhello()
[all …]
Dhandshake.cc127 SSL_HANDSHAKE::SSL_HANDSHAKE(SSL *ssl_arg) in SSL_HANDSHAKE() function in SSL_HANDSHAKE
156 SSL_HANDSHAKE::~SSL_HANDSHAKE() { in ~SSL_HANDSHAKE()
160 UniquePtr<SSL_HANDSHAKE> ssl_handshake_new(SSL *ssl) { in ssl_handshake_new()
161 UniquePtr<SSL_HANDSHAKE> hs = MakeUnique<SSL_HANDSHAKE>(ssl); in ssl_handshake_new()
224 bool ssl_hash_message(SSL_HANDSHAKE *hs, const SSLMessage &msg) { in ssl_hash_message()
284 enum ssl_verify_result_t ssl_verify_peer_cert(SSL_HANDSHAKE *hs) { in ssl_verify_peer_cert()
384 enum ssl_verify_result_t ssl_reverify_peer_cert(SSL_HANDSHAKE *hs) { in ssl_reverify_peer_cert()
403 uint16_t ssl_get_grease_value(SSL_HANDSHAKE *hs, in ssl_get_grease_value()
421 enum ssl_hs_wait_t ssl_get_finished(SSL_HANDSHAKE *hs) { in ssl_get_finished()
470 bool ssl_send_finished(SSL_HANDSHAKE *hs) { in ssl_send_finished()
[all …]
Dtls13_server.cc56 static int resolve_ecdhe_secret(SSL_HANDSHAKE *hs, bool *out_need_retry, in resolve_ecdhe_secret()
87 static int ssl_ext_supported_versions_add_serverhello(SSL_HANDSHAKE *hs, in ssl_ext_supported_versions_add_serverhello()
173 static bool add_new_session_tickets(SSL_HANDSHAKE *hs, bool *out_sent_tickets) { in add_new_session_tickets()
252 static enum ssl_hs_wait_t do_select_parameters(SSL_HANDSHAKE *hs) { in do_select_parameters()
309 SSL_HANDSHAKE *hs, uint8_t *out_alert, UniquePtr<SSL_SESSION> *out_session, in select_session()
394 static enum ssl_hs_wait_t do_select_session(SSL_HANDSHAKE *hs) { in do_select_session()
519 static enum ssl_hs_wait_t do_send_hello_retry_request(SSL_HANDSHAKE *hs) { in do_send_hello_retry_request()
554 static enum ssl_hs_wait_t do_read_second_client_hello(SSL_HANDSHAKE *hs) { in do_read_second_client_hello()
589 static enum ssl_hs_wait_t do_send_server_hello(SSL_HANDSHAKE *hs) { in do_send_server_hello()
705 static enum ssl_hs_wait_t do_send_server_certificate_verify(SSL_HANDSHAKE *hs) { in do_send_server_certificate_verify()
[all …]
Dhandshake_client.cc205 static void ssl_get_client_disabled(SSL_HANDSHAKE *hs, uint32_t *out_mask_a, in ssl_get_client_disabled()
217 static bool ssl_write_client_cipher_list(SSL_HANDSHAKE *hs, CBB *out) { in ssl_write_client_cipher_list()
284 bool ssl_write_client_hello(SSL_HANDSHAKE *hs) { in ssl_write_client_hello()
336 static bool parse_supported_versions(SSL_HANDSHAKE *hs, uint16_t *version, in parse_supported_versions()
379 static enum ssl_hs_wait_t do_start_connect(SSL_HANDSHAKE *hs) { in do_start_connect()
441 static enum ssl_hs_wait_t do_enter_early_data(SSL_HANDSHAKE *hs) { in do_enter_early_data()
474 static enum ssl_hs_wait_t do_early_reverify_server_certificate(SSL_HANDSHAKE *hs) { in do_early_reverify_server_certificate()
493 static enum ssl_hs_wait_t do_read_hello_verify_request(SSL_HANDSHAKE *hs) { in do_read_hello_verify_request()
537 static enum ssl_hs_wait_t do_read_server_hello(SSL_HANDSHAKE *hs) { in do_read_server_hello()
777 static enum ssl_hs_wait_t do_tls13(SSL_HANDSHAKE *hs) { in do_tls13()
[all …]
Dtls13_enc.cc35 static bool init_key_schedule(SSL_HANDSHAKE *hs, uint16_t version, in init_key_schedule()
49 bool tls13_init_key_schedule(SSL_HANDSHAKE *hs, const uint8_t *psk, in tls13_init_key_schedule()
60 bool tls13_init_early_key_schedule(SSL_HANDSHAKE *hs, const uint8_t *psk, in tls13_init_early_key_schedule()
98 bool tls13_advance_key_schedule(SSL_HANDSHAKE *hs, const uint8_t *in, in tls13_advance_key_schedule()
121 static bool derive_secret(SSL_HANDSHAKE *hs, uint8_t *out, size_t len, in derive_secret()
226 bool tls13_derive_early_secrets(SSL_HANDSHAKE *hs) { in tls13_derive_early_secrets()
261 bool tls13_derive_handshake_secrets(SSL_HANDSHAKE *hs) { in tls13_derive_handshake_secrets()
297 bool tls13_derive_application_secrets(SSL_HANDSHAKE *hs) { in tls13_derive_application_secrets()
365 bool tls13_derive_resumption_secret(SSL_HANDSHAKE *hs) { in tls13_derive_resumption_secret()
395 bool tls13_finished_mac(SSL_HANDSHAKE *hs, uint8_t *out, size_t *out_len, in tls13_finished_mac()
[all …]
Dtls13_client.cc55 static enum ssl_hs_wait_t do_read_hello_retry_request(SSL_HANDSHAKE *hs) { in do_read_hello_retry_request()
196 static enum ssl_hs_wait_t do_send_second_client_hello(SSL_HANDSHAKE *hs) { in do_send_second_client_hello()
216 static enum ssl_hs_wait_t do_read_server_hello(SSL_HANDSHAKE *hs) { in do_read_server_hello()
412 static enum ssl_hs_wait_t do_read_encrypted_extensions(SSL_HANDSHAKE *hs) { in do_read_encrypted_extensions()
464 static enum ssl_hs_wait_t do_read_certificate_request(SSL_HANDSHAKE *hs) { in do_read_certificate_request()
542 static enum ssl_hs_wait_t do_read_server_certificate(SSL_HANDSHAKE *hs) { in do_read_server_certificate()
565 SSL_HANDSHAKE *hs) { in do_read_server_certificate_verify()
593 SSL_HANDSHAKE *hs) { in do_server_certificate_reverify()
607 static enum ssl_hs_wait_t do_read_server_finished(SSL_HANDSHAKE *hs) { in do_read_server_finished()
627 static enum ssl_hs_wait_t do_send_end_of_early_data(SSL_HANDSHAKE *hs) { in do_send_end_of_early_data()
[all …]
Dhandshake_server.cc195 static bool negotiate_version(SSL_HANDSHAKE *hs, uint8_t *out_alert, in negotiate_version()
300 static void ssl_get_compatible_server_ciphers(SSL_HANDSHAKE *hs, in ssl_get_compatible_server_ciphers()
330 SSL_HANDSHAKE *hs, const SSL_CLIENT_HELLO *client_hello, in ssl3_choose_cipher()
398 static enum ssl_hs_wait_t do_start_accept(SSL_HANDSHAKE *hs) { in do_start_accept()
506 static enum ssl_hs_wait_t do_read_client_hello(SSL_HANDSHAKE *hs) { in do_read_client_hello()
591 static enum ssl_hs_wait_t do_select_certificate(SSL_HANDSHAKE *hs) { in do_select_certificate()
659 static enum ssl_hs_wait_t do_tls13(SSL_HANDSHAKE *hs) { in do_tls13()
669 static enum ssl_hs_wait_t do_select_parameters(SSL_HANDSHAKE *hs) { in do_select_parameters()
790 static enum ssl_hs_wait_t do_send_server_hello(SSL_HANDSHAKE *hs) { in do_send_server_hello()
865 static enum ssl_hs_wait_t do_send_server_certificate(SSL_HANDSHAKE *hs) { in do_send_server_certificate()
[all …]
Dtls_method.cc147 SSL_HANDSHAKE *hs, in ssl_noop_x509_session_verify_cert_chain()
152 static void ssl_noop_x509_hs_flush_cached_ca_names(SSL_HANDSHAKE *hs) {} in ssl_noop_x509_hs_flush_cached_ca_names()
153 static int ssl_noop_x509_ssl_new(SSL_HANDSHAKE *hs) { return 1; } in ssl_noop_x509_ssl_new()
156 static int ssl_noop_x509_ssl_auto_chain_if_needed(SSL_HANDSHAKE *hs) { in ssl_noop_x509_ssl_auto_chain_if_needed()
Dssl_versions.cc179 bool ssl_get_version_range(const SSL_HANDSHAKE *hs, uint16_t *out_min_version, in ssl_get_version_range()
266 bool ssl_supports_version(SSL_HANDSHAKE *hs, uint16_t version) { in ssl_supports_version()
279 bool ssl_add_supported_versions(SSL_HANDSHAKE *hs, CBB *cbb) { in ssl_add_supported_versions()
292 bool ssl_negotiate_version(SSL_HANDSHAKE *hs, uint8_t *out_alert, in ssl_negotiate_version()
Dtls13_both.cc57 SSL_HANDSHAKE *hs, Array<uint8_t> *out, in tls13_get_cert_verify_signature_input()
107 bool tls13_process_certificate(SSL_HANDSHAKE *hs, const SSLMessage &msg, in tls13_process_certificate()
341 bool tls13_process_certificate_verify(SSL_HANDSHAKE *hs, const SSLMessage &msg) { in tls13_process_certificate_verify()
388 bool tls13_process_finished(SSL_HANDSHAKE *hs, const SSLMessage &msg, in tls13_process_finished()
419 bool tls13_add_certificate(SSL_HANDSHAKE *hs) { in tls13_add_certificate()
553 enum ssl_private_key_result_t tls13_add_certificate_verify(SSL_HANDSHAKE *hs) { in tls13_add_certificate_verify()
603 bool tls13_add_finished(SSL_HANDSHAKE *hs) { in tls13_add_finished()
Dssl_cert.cc341 bool ssl_has_certificate(const SSL_HANDSHAKE *hs) { in ssl_has_certificate()
411 bool ssl_add_cert_chain(SSL_HANDSHAKE *hs, CBB *cbb) { in ssl_add_cert_chain()
678 bool ssl_add_client_CA_list(SSL_HANDSHAKE *hs, CBB *cbb) { in ssl_add_client_CA_list()
703 bool ssl_check_leaf_certificate(SSL_HANDSHAKE *hs, EVP_PKEY *pkey, in ssl_check_leaf_certificate()
729 bool ssl_on_certificate_selected(SSL_HANDSHAKE *hs) { in ssl_on_certificate_selected()
808 static bool ssl_can_serve_dc(const SSL_HANDSHAKE *hs) { in ssl_can_serve_dc()
837 bool ssl_signing_with_dc(const SSL_HANDSHAKE *hs) { in ssl_signing_with_dc()
Dssl_session.cc345 int ssl_get_new_session(SSL_HANDSHAKE *hs, int is_server) { in ssl_get_new_session()
460 static int ssl_encrypt_ticket_with_cipher_ctx(SSL_HANDSHAKE *hs, CBB *out, in ssl_encrypt_ticket_with_cipher_ctx()
539 static int ssl_encrypt_ticket_with_method(SSL_HANDSHAKE *hs, CBB *out, in ssl_encrypt_ticket_with_method()
570 int ssl_encrypt_ticket(SSL_HANDSHAKE *hs, CBB *out, in ssl_encrypt_ticket()
590 int ssl_session_is_context_valid(const SSL_HANDSHAKE *hs, in ssl_session_is_context_valid()
617 int ssl_session_is_resumable(const SSL_HANDSHAKE *hs, in ssl_session_is_resumable()
643 SSL_HANDSHAKE *hs, UniquePtr<SSL_SESSION> *out_session, in ssl_lookup_session()
710 enum ssl_hs_wait_t ssl_get_prev_session(SSL_HANDSHAKE *hs, in ssl_get_prev_session()
1058 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_get_session()
Dssl_privkey.cc136 bool ssl_has_private_key(const SSL_HANDSHAKE *hs) { in ssl_has_private_key()
201 SSL_HANDSHAKE *hs, uint8_t *out, size_t *out_len, size_t max_out, in ssl_private_key_sign()
244 enum ssl_private_key_result_t ssl_private_key_decrypt(SSL_HANDSHAKE *hs, in ssl_private_key_decrypt()
281 bool ssl_private_key_supports_signature_algorithm(SSL_HANDSHAKE *hs, in ssl_private_key_supports_signature_algorithm()
Dt1_enc.cc245 int tls1_change_cipher_state(SSL_HANDSHAKE *hs, in tls1_change_cipher_state()
251 int tls1_generate_master_secret(SSL_HANDSHAKE *hs, uint8_t *out, in tls1_generate_master_secret()
Dssl_x509.cc363 SSL_HANDSHAKE *hs, in ssl_crypto_x509_session_verify_cert_chain()
422 static void ssl_crypto_x509_hs_flush_cached_ca_names(SSL_HANDSHAKE *hs) { in ssl_crypto_x509_hs_flush_cached_ca_names()
427 static int ssl_crypto_x509_ssl_new(SSL_HANDSHAKE *hs) { in ssl_crypto_x509_ssl_new()
447 static int ssl_crypto_x509_ssl_auto_chain_if_needed(SSL_HANDSHAKE *hs) { in ssl_crypto_x509_ssl_auto_chain_if_needed()
Dssl_lib.cc275 void ssl_update_cache(SSL_HANDSHAKE *hs, int mode) { in ssl_update_cache()
888 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_do_handshake()
1281 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_reset_early_data_reject()
2660 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_in_init()
2782 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_get_pending_cipher()
2934 SSL_HANDSHAKE *hs = ssl->s3->hs.get(); in SSL_get_tlsext_status_type()