Home
last modified time | relevance | path

Searched defs:ssl (Results 1 – 25 of 140) sorted by relevance

123456

/external/boringssl/src/ssl/
Dssl_lib.cc201 void ssl_reset_error_state(SSL *ssl) { in ssl_reset_error_state()
209 void ssl_set_read_error(SSL* ssl) { in ssl_set_read_error()
214 static bool check_read_error(const SSL *ssl) { in check_read_error()
222 bool ssl_can_write(const SSL *ssl) { in ssl_can_write()
226 bool ssl_can_read(const SSL *ssl) { in ssl_can_read()
230 ssl_open_record_t ssl_open_handshake(SSL *ssl, size_t *out_consumed, in ssl_open_handshake()
244 ssl_open_record_t ssl_open_change_cipher_spec(SSL *ssl, size_t *out_consumed, in ssl_open_change_cipher_spec()
260 ssl_open_record_t ssl_open_app_data(SSL *ssl, Span<uint8_t> *out, in ssl_open_app_data()
276 SSL *const ssl = hs->ssl; in ssl_update_cache() local
342 int ssl_log_secret(const SSL *ssl, const char *label, const uint8_t *secret, in ssl_log_secret()
[all …]
Dd1_lib.cc88 bool dtls1_new(SSL *ssl) { in dtls1_new()
109 void dtls1_free(SSL *ssl) { in dtls1_free()
120 void dtls1_start_timer(SSL *ssl) { in dtls1_start_timer()
138 bool dtls1_is_timer_expired(SSL *ssl) { in dtls1_is_timer_expired()
155 static void dtls1_double_timeout(SSL *ssl) { in dtls1_double_timeout()
162 void dtls1_stop_timer(SSL *ssl) { in dtls1_stop_timer()
168 bool dtls1_check_timeout_num(SSL *ssl) { in dtls1_check_timeout_num()
194 void DTLSv1_set_initial_timeout_duration(SSL *ssl, unsigned int duration_ms) { in DTLSv1_set_initial_timeout_duration()
198 int DTLSv1_get_timeout(const SSL *ssl, struct timeval *out) { in DTLSv1_get_timeout()
248 int DTLSv1_handle_timeout(SSL *ssl) { in DTLSv1_handle_timeout()
Ds3_both.cc135 static bool add_record_to_flight(SSL *ssl, uint8_t type, in add_record_to_flight()
169 bool ssl3_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in ssl3_init_message()
182 bool ssl3_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in ssl3_finish_message()
186 bool ssl3_add_message(SSL *ssl, Array<uint8_t> msg) { in ssl3_add_message()
242 bool tls_flush_pending_hs_data(SSL *ssl) { in tls_flush_pending_hs_data()
263 bool ssl3_add_change_cipher_spec(SSL *ssl) { in ssl3_add_change_cipher_spec()
281 int ssl3_flush_flight(SSL *ssl) { in ssl3_flush_flight()
347 static ssl_open_record_t read_v2_client_hello(SSL *ssl, size_t *out_consumed, in read_v2_client_hello()
469 static bool parse_message(const SSL *ssl, SSLMessage *out, in parse_message()
497 bool ssl3_get_message(SSL *ssl, SSLMessage *out) { in ssl3_get_message()
[all …]
Dd1_both.cc255 static bool dtls1_is_current_message_complete(const SSL *ssl) { in dtls1_is_current_message_complete()
266 SSL *ssl, uint8_t *out_alert, const struct hm_header_st *msg_hdr) { in dtls1_get_incoming_message()
297 ssl_open_record_t dtls1_open_handshake(SSL *ssl, size_t *out_consumed, in dtls1_open_handshake()
408 bool dtls1_get_message(SSL *ssl, SSLMessage *out) { in dtls1_get_message()
426 void dtls1_next_message(SSL *ssl) { in dtls1_next_message()
440 bool dtls_has_unprocessed_handshake_data(const SSL *ssl) { in dtls_has_unprocessed_handshake_data()
475 ssl_open_record_t dtls1_open_change_cipher_spec(SSL *ssl, size_t *out_consumed, in dtls1_open_change_cipher_spec()
500 void dtls_clear_outgoing_messages(SSL *ssl) { in dtls_clear_outgoing_messages()
511 bool dtls1_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in dtls1_init_message()
525 bool dtls1_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in dtls1_finish_message()
[all …]
Dtls_record.cc143 static bool ssl_needs_record_splitting(const SSL *ssl) { in ssl_needs_record_splitting()
165 size_t ssl_record_prefix_len(const SSL *ssl) { in ssl_record_prefix_len()
176 size_t ssl_seal_align_prefix_len(const SSL *ssl) { in ssl_seal_align_prefix_len()
190 static ssl_open_record_t skip_early_data(SSL *ssl, uint8_t *out_alert, in skip_early_data()
206 ssl_open_record_t tls_open_record(SSL *ssl, uint8_t *out_type, in tls_open_record()
376 static bool do_seal_record(SSL *ssl, uint8_t *out_prefix, uint8_t *out, in do_seal_record()
425 static size_t tls_seal_scatter_prefix_len(const SSL *ssl, uint8_t type, in tls_seal_scatter_prefix_len()
442 static bool tls_seal_scatter_suffix_len(const SSL *ssl, size_t *out_suffix_len, in tls_seal_scatter_suffix_len()
467 static bool tls_seal_scatter_record(SSL *ssl, uint8_t *out_prefix, uint8_t *out, in tls_seal_scatter_record()
512 bool tls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, in tls_seal_record()
[all …]
Dssl_buffer.cc105 static int dtls_read_buffer_next_packet(SSL *ssl) { in dtls_read_buffer_next_packet()
126 static int tls_read_buffer_extend_to(SSL *ssl, size_t len) { in tls_read_buffer_extend_to()
150 int ssl_read_buffer_extend_to(SSL *ssl, size_t len) { in ssl_read_buffer_extend_to()
188 int ssl_handle_open_record(SSL *ssl, bool *out_retry, ssl_open_record_t ret, in ssl_handle_open_record()
240 static int tls_write_buffer_flush(SSL *ssl) { in tls_write_buffer_flush()
255 static int dtls_write_buffer_flush(SSL *ssl) { in dtls_write_buffer_flush()
274 int ssl_write_buffer_flush(SSL *ssl) { in ssl_write_buffer_flush()
Dbio_ssl.cc20 SSL *ssl = get_ssl(bio); in ssl_read() local
60 SSL *ssl = get_ssl(bio); in ssl_write() local
94 SSL *ssl = get_ssl(bio); in ssl_ctrl() local
141 SSL *ssl = get_ssl(bio); in ssl_free() local
156 SSL *ssl = get_ssl(bio); in ssl_callback_ctrl() local
177 long BIO_set_ssl(BIO *bio, SSL *ssl, int take_owership) { in BIO_set_ssl()
Dhandshake_client.cc218 SSL *const ssl = hs->ssl; in ssl_write_client_cipher_list() local
285 SSL *const ssl = hs->ssl; in ssl_write_client_hello() local
344 SSL *const ssl = hs->ssl; in parse_supported_versions() local
380 SSL *const ssl = hs->ssl; in do_start_connect() local
442 SSL *const ssl = hs->ssl; in do_enter_early_data() local
494 SSL *const ssl = hs->ssl; in do_read_hello_verify_request() local
538 SSL *const ssl = hs->ssl; in do_read_server_hello() local
788 SSL *const ssl = hs->ssl; in do_read_server_certificate() local
835 SSL *const ssl = hs->ssl; in do_read_certificate_status() local
921 SSL *const ssl = hs->ssl; in do_read_server_key_exchange() local
[all …]
Ds3_pkt.cc129 int ssl3_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, in ssl3_write_app_data()
204 static int ssl3_write_pending(SSL *ssl, int type, const uint8_t *in, in ssl3_write_pending()
223 static int do_ssl3_write(SSL *ssl, int type, const uint8_t *in, unsigned len) { in do_ssl3_write()
302 ssl_open_record_t ssl3_open_app_data(SSL *ssl, Span<uint8_t> *out, in ssl3_open_app_data()
358 ssl_open_record_t ssl3_open_change_cipher_spec(SSL *ssl, size_t *out_consumed, in ssl3_open_change_cipher_spec()
384 int ssl_send_alert(SSL *ssl, int level, int desc) { in ssl_send_alert()
412 int ssl3_dispatch_alert(SSL *ssl) { in ssl3_dispatch_alert()
Dtls13_server.cc58 SSL *const ssl = hs->ssl; in resolve_ecdhe_secret() local
132 const SSL *ssl, const SSL_CLIENT_HELLO *client_hello, uint16_t group_id) { in choose_tls13_cipher()
174 SSL *const ssl = hs->ssl; in add_new_session_tickets() local
255 SSL *const ssl = hs->ssl; in do_select_parameters() local
312 SSL *const ssl = hs->ssl; in select_session() local
395 SSL *const ssl = hs->ssl; in do_select_session() local
520 SSL *const ssl = hs->ssl; in do_send_hello_retry_request() local
555 SSL *const ssl = hs->ssl; in do_read_second_client_hello() local
590 SSL *const ssl = hs->ssl; in do_send_server_hello() local
724 SSL *const ssl = hs->ssl; in do_send_server_finished() local
[all …]
Dhandshake.cc160 UniquePtr<SSL_HANDSHAKE> ssl_handshake_new(SSL *ssl) { in ssl_handshake_new()
173 bool ssl_check_message_type(SSL *ssl, const SSLMessage &msg, int type) { in ssl_check_message_type()
184 bool ssl_add_message_cbb(SSL *ssl, CBB *cbb) { in ssl_add_message_cbb()
194 size_t ssl_max_handshake_message_len(const SSL *ssl) { in ssl_max_handshake_message_len()
285 SSL *const ssl = hs->ssl; in ssl_verify_peer_cert() local
385 SSL *const ssl = hs->ssl; in ssl_reverify_peer_cert() local
422 SSL *const ssl = hs->ssl; in ssl_get_finished() local
471 SSL *const ssl = hs->ssl; in ssl_send_finished() local
529 SSL *const ssl = hs->ssl; in ssl_run_handshake() local
Dtls13_client.cc56 SSL *const ssl = hs->ssl; in do_read_hello_retry_request() local
197 SSL *const ssl = hs->ssl; in do_send_second_client_hello() local
217 SSL *const ssl = hs->ssl; in do_read_server_hello() local
413 SSL *const ssl = hs->ssl; in do_read_encrypted_extensions() local
465 SSL *const ssl = hs->ssl; in do_read_certificate_request() local
543 SSL *const ssl = hs->ssl; in do_read_server_certificate() local
566 SSL *const ssl = hs->ssl; in do_read_server_certificate_verify() local
608 SSL *const ssl = hs->ssl; in do_read_server_finished() local
628 SSL *const ssl = hs->ssl; in do_send_end_of_early_data() local
653 SSL *const ssl = hs->ssl; in do_send_client_certificate() local
[all …]
Dssl_x509.cc163 static void check_ssl_x509_method(const SSL *ssl) { in check_ssl_x509_method()
528 X509 *SSL_get_peer_certificate(const SSL *ssl) { in SSL_get_peer_certificate()
571 int SSL_set_purpose(SSL *ssl, int purpose) { in SSL_set_purpose()
584 int SSL_set_trust(SSL *ssl, int trust) { in SSL_set_trust()
597 int SSL_set1_param(SSL *ssl, const X509_VERIFY_PARAM *param) { in SSL_set1_param()
610 X509_VERIFY_PARAM *SSL_get0_param(SSL *ssl) { in SSL_get0_param()
619 int SSL_get_verify_depth(const SSL *ssl) { in SSL_get_verify_depth()
628 int (*SSL_get_verify_callback(const SSL *ssl))(int, X509_STORE_CTX *) { in SSL_get_verify_callback()
653 void SSL_set_verify(SSL *ssl, int mode, in SSL_set_verify()
665 void SSL_set_verify_depth(SSL *ssl, int depth) { in SSL_set_verify_depth()
[all …]
Dhandshake_server.cc197 SSL *const ssl = hs->ssl; in negotiate_version() local
332 SSL *const ssl = hs->ssl; in ssl3_choose_cipher() local
507 SSL *const ssl = hs->ssl; in do_read_client_hello() local
592 SSL *const ssl = hs->ssl; in do_select_certificate() local
670 SSL *const ssl = hs->ssl; in do_select_parameters() local
791 SSL *const ssl = hs->ssl; in do_send_server_hello() local
866 SSL *const ssl = hs->ssl; in do_send_server_certificate() local
956 SSL *const ssl = hs->ssl; in do_send_server_key_exchange() local
1029 SSL *const ssl = hs->ssl; in do_send_server_hello_done() local
1066 SSL *const ssl = hs->ssl; in do_read_client_certificate() local
[all …]
Dt1_lib.cc202 bool ssl_client_hello_init(SSL *ssl, SSL_CLIENT_HELLO *out, in ssl_client_hello_init()
303 SSL *const ssl = hs->ssl; in tls1_get_shared_group() local
502 static SSLSignatureAlgorithmList tls12_get_verify_sigalgs(const SSL *ssl, in tls12_get_verify_sigalgs()
517 bool tls12_add_verify_sigalgs(const SSL *ssl, CBB *out, bool for_certs) { in tls12_add_verify_sigalgs()
528 bool tls12_check_peer_sigalg(const SSL *ssl, uint8_t *out_alert, in tls12_check_peer_sigalg()
543 bool tls12_has_different_verify_sigalgs_for_certs(const SSL *ssl) { in tls12_has_different_verify_sigalgs_for_certs()
603 SSL *const ssl = hs->ssl; in ext_sni_add_clienthello() local
632 SSL *const ssl = hs->ssl; in ext_sni_parse_clienthello() local
694 SSL *const ssl = hs->ssl; in ext_ri_add_clienthello() local
718 SSL *const ssl = hs->ssl; in ext_ri_parse_serverhello() local
[all …]
Dd1_pkt.cc131 ssl_open_record_t dtls1_open_app_data(SSL *ssl, Span<uint8_t> *out, in dtls1_open_app_data()
190 int dtls1_write_app_data(SSL *ssl, bool *out_needs_handshake, const uint8_t *in, in dtls1_write_app_data()
222 int dtls1_write_record(SSL *ssl, int type, const uint8_t *in, size_t len, in dtls1_write_record()
253 int dtls1_dispatch_alert(SSL *ssl) { in dtls1_dispatch_alert()
Dt1_enc.cc167 static bool get_key_block_lengths(const SSL *ssl, size_t *out_mac_secret_len, in get_key_block_lengths()
192 int tls1_configure_aead(SSL *ssl, evp_aead_direction_t direction, in tls1_configure_aead()
256 const SSL *ssl = hs->ssl; in tls1_generate_master_secret() local
284 size_t SSL_get_key_block_len(const SSL *ssl) { in SSL_get_key_block_len()
295 int SSL_generate_key_block(const SSL *ssl, uint8_t *out, size_t out_len) { in SSL_generate_key_block()
308 int SSL_export_keying_material(SSL *ssl, uint8_t *out, size_t out_len, in SSL_export_keying_material()
364 SSL *ssl, uint8_t *out, size_t out_len, const char *label, size_t label_len, in SSL_export_early_keying_material()
Ds3_lib.cc185 bool ssl3_new(SSL *ssl) { in ssl3_new()
209 void ssl3_free(SSL *ssl) { in ssl3_free()
Ddtls_record.cc177 enum ssl_open_record_t dtls_open_record(SSL *ssl, uint8_t *out_type, in dtls_open_record()
274 static const SSLAEADContext *get_write_aead(const SSL *ssl, in get_write_aead()
284 size_t dtls_max_seal_overhead(const SSL *ssl, in dtls_max_seal_overhead()
289 size_t dtls_seal_prefix_len(const SSL *ssl, enum dtls1_use_epoch_t use_epoch) { in dtls_seal_prefix_len()
294 bool dtls_seal_record(SSL *ssl, uint8_t *out, size_t *out_len, size_t max_out, in dtls_seal_record()
Dtls13_both.cc109 SSL *const ssl = hs->ssl; in tls13_process_certificate() local
342 SSL *const ssl = hs->ssl; in tls13_process_certificate_verify() local
390 SSL *const ssl = hs->ssl; in tls13_process_finished() local
420 SSL *const ssl = hs->ssl; in tls13_add_certificate() local
554 SSL *const ssl = hs->ssl; in tls13_add_certificate_verify() local
604 SSL *const ssl = hs->ssl; in tls13_add_finished() local
625 bool tls13_add_key_update(SSL *ssl, int update_requested) { in tls13_add_key_update()
644 static bool tls13_receive_key_update(SSL *ssl, const SSLMessage &msg) { in tls13_receive_key_update()
670 bool tls13_post_handshake(SSL *ssl, const SSLMessage &msg) { in tls13_post_handshake()
/external/boringssl/src/ssl/test/
Dtest_config.cc371 bool SetTestConfig(SSL *ssl, const TestConfig *config) { in SetTestConfig()
376 const TestConfig *GetTestConfig(const SSL *ssl) { in GetTestConfig()
381 static int LegacyOCSPCallback(SSL *ssl, void *arg) { in LegacyOCSPCallback()
401 static int ServerNameCallback(SSL *ssl, int *out_alert, void *arg) { in ServerNameCallback()
415 static int NextProtoSelectCallback(SSL *ssl, uint8_t **out, uint8_t *outlen, in NextProtoSelectCallback()
428 static int NextProtosAdvertisedCallback(SSL *ssl, const uint8_t **out, in NextProtosAdvertisedCallback()
441 const void *buf, size_t len, SSL *ssl, void *arg) { in MessageCallback()
517 static int TicketKeyCallback(SSL *ssl, uint8_t *key_name, uint8_t *iv, in TicketKeyCallback()
550 static int NewSessionCallback(SSL *ssl, SSL_SESSION *session) { in NewSessionCallback()
564 static void InfoCallback(const SSL *ssl, int type, int val) { in InfoCallback()
[all …]
/external/boringssl/src/tool/
Dclient.cc158 static int NextProtoSelectCallback(SSL* ssl, uint8_t** out, uint8_t* outlen, in NextProtoSelectCallback()
167 static void KeyLogCallback(const SSL *ssl, const char *line) { in KeyLogCallback()
175 static int NewSessionCallback(SSL *ssl, SSL_SESSION *session) { in NewSessionCallback()
188 static bool WaitForSession(SSL *ssl, int sock) { in WaitForSession()
230 bool (*cb)(SSL *ssl, int sock)) { in DoConnection()
254 bssl::UniquePtr<SSL> ssl(SSL_new(ctx)); in DoConnection() local
327 static void InfoCallback(const SSL *ssl, int type, int value) { in InfoCallback()
/external/conscrypt/common/src/main/java/org/conscrypt/
DNativeCrypto.java888 … static native void SSL_enable_tls_channel_id(long ssl, NativeSsl ssl_holder) throws SSLException; in SSL_enable_tls_channel_id()
890 static native byte[] SSL_get_tls_channel_id(long ssl, NativeSsl ssl_holder) throws SSLException; in SSL_get_tls_channel_id()
892 …static native void SSL_set1_tls_channel_id(long ssl, NativeSsl ssl_holder, NativeRef.EVP_PKEY pkey… in SSL_set1_tls_channel_id()
902 …static native void setLocalCertsAndPrivateKey(long ssl, NativeSsl ssl_holder, byte[][] encodedCert… in setLocalCertsAndPrivateKey()
905 …static native void SSL_set_client_CA_list(long ssl, NativeSsl ssl_holder, byte[][] asn1DerEncodedX… in SSL_set_client_CA_list()
908 static native long SSL_set_mode(long ssl, NativeSsl ssl_holder, long mode); in SSL_set_mode()
910 static native long SSL_set_options(long ssl, NativeSsl ssl_holder, long options); in SSL_set_options()
912 static native long SSL_clear_options(long ssl, NativeSsl ssl_holder, long options); in SSL_clear_options()
914 …static native int SSL_set_protocol_versions(long ssl, NativeSsl ssl_holder, int min_version, int m… in SSL_set_protocol_versions()
916 static native void SSL_enable_signed_cert_timestamps(long ssl, NativeSsl ssl_holder); in SSL_enable_signed_cert_timestamps()
[all …]
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DNativeCrypto.java928 … static native void SSL_enable_tls_channel_id(long ssl, NativeSsl ssl_holder) throws SSLException; in SSL_enable_tls_channel_id()
930 static native byte[] SSL_get_tls_channel_id(long ssl, NativeSsl ssl_holder) throws SSLException; in SSL_get_tls_channel_id()
932 …static native void SSL_set1_tls_channel_id(long ssl, NativeSsl ssl_holder, NativeRef.EVP_PKEY pkey… in SSL_set1_tls_channel_id()
942 …static native void setLocalCertsAndPrivateKey(long ssl, NativeSsl ssl_holder, byte[][] encodedCert… in setLocalCertsAndPrivateKey()
945 …static native void SSL_set_client_CA_list(long ssl, NativeSsl ssl_holder, byte[][] asn1DerEncodedX… in SSL_set_client_CA_list()
948 static native long SSL_set_mode(long ssl, NativeSsl ssl_holder, long mode); in SSL_set_mode()
950 static native long SSL_set_options(long ssl, NativeSsl ssl_holder, long options); in SSL_set_options()
952 static native long SSL_clear_options(long ssl, NativeSsl ssl_holder, long options); in SSL_clear_options()
954 …static native int SSL_set_protocol_versions(long ssl, NativeSsl ssl_holder, int min_version, int m… in SSL_set_protocol_versions()
956 static native void SSL_enable_signed_cert_timestamps(long ssl, NativeSsl ssl_holder); in SSL_enable_signed_cert_timestamps()
[all …]
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/
DSSLSocketTest.java113 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedCipherSuites_returnsCopies() local
241 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledCipherSuites_returnsCopies() local
248 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_storesCopy() local
260 SSLSocket ssl = (SSLSocket) context.getSocketFactory().createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS12() local
295 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledCipherSuites_TLS13() local
319 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSupportedProtocols_returnsCopies() local
326 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getEnabledProtocols_returnsCopies() local
333 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledProtocols_storesCopy() local
344 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_setEnabledProtocols() local
451 SSLSocket ssl = (SSLSocket) sf.createSocket(); in test_SSLSocket_getSession() local
[all …]

123456