Home
last modified time | relevance | path

Searched refs:body (Results 1 – 23 of 23) sorted by relevance

/ssl/test/runner/
A Dhandshake_messages.go362 body: body.BytesOrPanic(),
372 body: body.BytesOrPanic(),
433 body: body.BytesOrPanic(),
558 body: body.BytesOrPanic(),
570 body: body.BytesOrPanic(),
582 body: body.BytesOrPanic(),
594 body: body.BytesOrPanic(),
609 body: body.BytesOrPanic(),
621 body: body.BytesOrPanic(),
634 body: body.BytesOrPanic(),
[all …]
A Dshim_ticket.go121 func parseDERElement(in []byte) (tag byte, body, rest []byte, ok bool) {
174 body = rest[:length]
A Ddtls.go394 body := data[4:]
400 Data: slices.Clone(body),
A Dhandshake_server.go2568 var body []byte
2570 !readUint16LengthPrefixedBytes(&bExtensions, &body) {
/ssl/
A Dtls13_both.cc105 CBS body = msg.body; in tls13_process_certificate() local
116 CBS_len(&body) != 0) { in tls13_process_certificate()
175 CBS_len(&body) != 0) { in tls13_process_certificate()
342 CBS body = msg.body, signature; in tls13_process_certificate_verify() local
346 CBS_len(&body) != 0) { in tls13_process_certificate_verify()
419 body = cbb.get(); in tls13_add_certificate()
421 body = &body_storage; in tls13_add_certificate()
536 body = &body_storage; in tls13_add_certificate()
584 CBB body; in tls13_add_certificate_verify() local
636 CBB body; in tls13_add_finished() local
[all …]
A Dhandshake_client.cc221 CBB body; in ssl_add_client_hello() local
546 CBS body = msg.body; in ssl_parse_server_hello() local
560 if ((CBS_len(&body) != 0 && in ssl_parse_server_hello()
562 CBS_len(&body) != 0) { in ssl_parse_server_hello()
849 CBS body = msg.body; in do_read_server_certificate() local
858 CBS_len(&body) != 0 || in do_read_server_certificate()
1166 CBS body = msg.body, certificate_types; in do_read_certificate_request() local
1346 CBB body; in do_send_client_key_exchange() local
1515 CBB body, child; in do_send_client_certificate_verify() local
1577 CBB body, child; in do_send_client_finished() local
[all …]
A Dhandshake_server.cc339 CBS body; in is_probably_jdk11_with_tls13() local
351 sigalgs = body; in is_probably_jdk11_with_tls13()
354 sigalgs_cert = body; in is_probably_jdk11_with_tls13()
357 supported_groups = body; in is_probably_jdk11_with_tls13()
397 CBS body; in decrypt_ech() local
420 CBS_len(&body) != 0) { in decrypt_ech()
946 CBB body, session_id_bytes; in do_send_server_hello() local
983 CBB body, ocsp_response; in do_send_server_certificate() local
1092 CBB body, child; in do_send_server_key_exchange() local
1160 CBB body; in do_send_server_hello_done() local
[all …]
A Dtls13_server.cc202 CBB body, nonce_cbb, ticket, extensions; in add_new_session_tickets() local
205 !CBB_add_u32(&body, session->timeout) || in add_new_session_tickets()
725 CBB body, session_id, extensions; in do_send_hello_retry_request() local
727 !CBB_add_u16(&body, in do_send_hello_retry_request()
926 CBB body, extensions, session_id; in do_send_server_hello() local
928 !CBB_add_u16(&body, in do_send_server_hello()
936 !CBB_add_u8(&body, 0) || in do_send_server_hello()
985 !ssl_add_serverhello_tlsext(hs, &body) || in do_send_server_hello()
1183 if (CBS_len(&msg.body) != 0) { in do_process_end_of_early_data()
1215 CBS body = msg.body, extensions; in do_read_client_encrypted_extensions() local
[all …]
A Ds3_pkt.cc243 Span<uint8_t> body; in tls_open_app_data() local
244 auto ret = tls_open_record(ssl, &type, &body, out_consumed, out_alert, in); in tls_open_app_data()
261 if (!tls_append_handshake_data(ssl, body)) { in tls_open_app_data()
275 if (body.size() > kMaxEarlyDataAccepted - ssl->s3->hs->early_data_read) { in tls_open_app_data()
281 ssl->s3->hs->early_data_read += body.size(); in tls_open_app_data()
284 if (body.empty()) { in tls_open_app_data()
288 *out = body; in tls_open_app_data()
296 Span<uint8_t> body; in tls_open_change_cipher_spec() local
297 auto ret = tls_open_record(ssl, &type, &body, out_consumed, out_alert, in); in tls_open_change_cipher_spec()
308 if (body.size() != 1 || body[0] != SSL3_MT_CCS) { in tls_open_change_cipher_spec()
[all …]
A Dtls13_client.cc603 CBS body = msg.body, extensions; in do_read_encrypted_extensions() local
605 CBS_len(&body) != 0) { in do_read_encrypted_extensions()
704 CBS body = msg.body, context, extensions, supported_signature_algorithms; in do_read_certificate_request() local
710 CBS_len(&body) != 0 || in do_read_certificate_request()
847 CBB body; in do_send_end_of_early_data() local
872 CBB body, extensions, extension; in do_send_client_encrypted_extensions() local
1000 CBB body; in do_complete_second_flight() local
1002 !tls1_write_channel_id(hs, &body) || in do_complete_second_flight()
1140 CBS body = msg.body; in tls13_process_new_session_ticket() local
1167 if (!CBS_get_u32(body, &server_timeout) || in tls13_create_session_with_ticket()
[all …]
A Dencrypted_client_hello.cc92 Span<const uint8_t> body) { in is_valid_client_hello_inner() argument
96 if (!SSL_parse_client_hello(ssl, &client_hello, body.data(), body.size()) || in is_valid_client_hello_inner()
167 CBB body, extensions_cbb; in ssl_decode_client_hello_inner() local
170 !CBB_add_u16_length_prefixed(&body, &extensions_cbb)) { in ssl_decode_client_hello_inner()
253 if (!CBB_flush(&body)) { in ssl_decode_client_hello_inner()
259 Span(CBB_data(&body), CBB_len(&body)))) { in ssl_decode_client_hello_inner()
474 CBS body; in parse_ech_config() local
476 !CBS_get_u16_length_prefixed(&extensions, &body)) { in parse_ech_config()
785 CBB body; in ssl_encrypt_client_hello() local
790 !ssl_write_client_hello_without_extensions(hs, &body, in ssl_encrypt_client_hello()
[all …]
A Dhandshake.cc85 out_msg->body = CBS(Span(ech_client_hello_buf).subspan(header_len)); in GetClientHello()
92 if (!SSL_parse_client_hello(ssl, out_client_hello, CBS_data(&out_msg->body), in GetClientHello()
93 CBS_len(&out_msg->body))) { in GetClientHello()
391 bool finished_ok = CBS_mem_equal(&msg.body, finished, finished_len); in ssl_get_finished()
452 CBB body; in ssl_send_finished() local
453 if (!ssl->method->init_message(ssl, cbb.get(), &body, SSL3_MT_FINISHED) || in ssl_send_finished()
454 !CBB_add_bytes(&body, finished.data(), finished.size()) || in ssl_send_finished()
465 CBB body, certs, cert; in ssl_send_tls12_certificate() local
466 if (!hs->ssl->method->init_message(hs->ssl, cbb.get(), &body, in ssl_send_tls12_certificate()
468 !CBB_add_u24_length_prefixed(&body, &certs)) { in ssl_send_tls12_certificate()
A Dtls_record.cc140 CBS body; in tls_open_record() local
141 if (!CBS_get_bytes(&cbs, &body, ciphertext_len)) { in tls_open_record()
156 Span<const uint8_t>(body) == kChangeCipherSpec) { in tls_open_record()
184 Span(const_cast<uint8_t *>(CBS_data(&body)), CBS_len(&body)))) { in tls_open_record()
430 uint8_t *body = out + prefix_len; in tls_seal_record() local
431 uint8_t *suffix = body + in_len; in tls_seal_record()
432 if (!tls_seal_scatter_record(ssl, prefix, body, suffix, type, in, in_len)) { in tls_seal_record()
A Ddtls_record.cc158 CBS header, body; member
188 if (!CBS_get_u16_length_prefixed(in, &out->body)) { in parse_dtls13_record()
195 BSSL_CHECK(CBS_get_bytes(in, &out->body, CBS_len(in))); in parse_dtls13_record()
213 if (!read_epoch->rn_encrypter->GenerateMask(mask, out->body)) { in parse_dtls13_record()
239 !CBS_get_u16_length_prefixed(in, &out->body)) { in parse_dtls12_record()
283 if (CBS_len(&out->body) > SSL3_RT_MAX_ENCRYPTED_LENGTH) { in parse_dtls_record()
287 size_t header_len = CBS_data(&out->body) - CBS_data(&copy); in parse_dtls_record()
330 cbs_to_writable_bytes(record.body))) { in dtls_open_record()
A Dd1_both.cc262 CBS body; in dtls1_process_handshake_fragments() local
263 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_process_handshake_fragments()
339 Span<uint8_t> dest = frag->msg().subspan(frag_off, CBS_len(&body)); in dtls1_process_handshake_fragments()
340 OPENSSL_memcpy(dest.data(), CBS_data(&body), CBS_len(&body)); in dtls1_process_handshake_fragments()
442 out->body = CBS(frag->msg()); in dtls1_get_message()
547 bool dtls1_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in dtls1_init_message() argument
554 !CBB_add_u24_length_prefixed(cbb, body)) { in dtls1_init_message()
753 Span<const uint8_t> body = body_cbs; in seal_next_record() local
773 if (!body.empty()) { in seal_next_record()
774 frag = body.subspan(range.start, todo); in seal_next_record()
A Ds3_both.cc74 bool tls_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in tls_init_message() argument
78 !CBB_add_u24_length_prefixed(cbb, body)) { in tls_init_message()
393 if (!CBS_get_bytes(&cbs, &out->body, len)) { in parse_message()
507 Span<uint8_t> body; in tls_open_handshake() local
508 auto ret = tls_open_record(ssl, &type, &body, out_consumed, out_alert, in); in tls_open_handshake()
520 if (!tls_append_handshake_data(ssl, body)) { in tls_open_handshake()
A Dd1_pkt.cc191 CBS cbs, body; in dtls1_open_app_data() local
194 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_app_data()
A Dtls13_enc.cc562 auto body = truncated.subspan(12); in tls13_psk_binder() local
565 !EVP_DigestUpdate(ctx.get(), body.data(), body.size()) || in tls13_psk_binder()
A Dinternal.h971 CBS body; member
2112 CBS *body);
2475 bool (*init_message)(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
3501 bool tls_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
3507 bool dtls1_init_message(const SSL *ssl, CBB *cbb, CBB *body, uint8_t type);
A Dextensions.cc361 CBB body, child; in ssl_add_flags_extension() local
363 !CBB_add_u16_length_prefixed(cbb, &body) || in ssl_add_flags_extension()
364 !CBB_add_u8_length_prefixed(&body, &child)) { in ssl_add_flags_extension()
659 CBB body, retry_configs; in ext_ech_add_serverhello() local
661 !CBB_add_u16_length_prefixed(out, &body) || in ext_ech_add_serverhello()
662 !CBB_add_u16_length_prefixed(&body, &retry_configs)) { in ext_ech_add_serverhello()
4586 CBS channel_id = msg.body, extension; in tls1_verify_channel_id()
A Dhandoff.cc99 !SSL_parse_client_hello(ssl, out_hello, CBS_data(&msg.body), in SSL_serialize_handoff()
100 CBS_len(&msg.body))) { in SSL_serialize_handoff()
A Dssl_lib.cc781 if (msg.type != SSL3_MT_HELLO_REQUEST || CBS_len(&msg.body) != 0) { in ssl_do_post_handshake()
3129 CBS cbs, body; in SSL_process_tls13_new_session_ticket() local
3133 !CBS_get_u24_length_prefixed(&cbs, &body) || // in SSL_process_tls13_new_session_ticket()
3139 UniquePtr<SSL_SESSION> session = tls13_create_session_with_ticket(ssl, &body); in SSL_process_tls13_new_session_ticket()
A Dssl_test.cc2214 auto body = in GetECHLength() local
2216 if (!SSL_parse_client_hello(ssl.get(), &parsed, body.data(), body.size()) || in GetECHLength()
9182 CBS body; in GetExtensionOrder() local
9184 !CBS_get_u16_length_prefixed(&extensions, &body)) { in GetExtensionOrder()

Completed in 107 milliseconds