Lines Matching defs:cbs

65 tls13_client_hello_is_legacy(CBS *cbs)
71 CBS_dup(cbs, &extensions_block);
145 tls13_client_hello_process(struct tls13_ctx *ctx, CBS *cbs)
155 if (!CBS_get_u16(cbs, &legacy_version))
157 if (!CBS_get_bytes(cbs, &client_random, SSL3_RANDOM_SIZE))
159 if (!CBS_get_u8_length_prefixed(cbs, &session_id))
161 if (!CBS_get_u16_length_prefixed(cbs, &cipher_suites))
163 if (!CBS_get_u8_length_prefixed(cbs, &compression_methods))
166 if (tls13_client_hello_is_legacy(cbs) || s->version < TLS1_3_VERSION) {
167 if (!CBS_skip(cbs, CBS_len(cbs)))
213 if (!tlsext_server_parse(s, SSL_TLSEXT_MSG_CH, cbs, &alert_desc)) {
298 tls13_client_hello_recv(struct tls13_ctx *ctx, CBS *cbs)
302 if (!tls13_client_hello_process(ctx, cbs))
475 tls13_client_hello_retry_recv(struct tls13_ctx *ctx, CBS *cbs)
479 if (!tls13_client_hello_process(ctx, cbs))
800 CBS cbs;
831 CBS_init(&cbs, verify_data, verify_data_len);
832 if (!CBS_write_bytes(&cbs, ctx->hs->finished,
869 tls13_client_certificate_recv(struct tls13_ctx *ctx, CBS *cbs)
878 if (!CBS_get_u8_length_prefixed(cbs, &cert_request_context))
882 if (!CBS_get_u24_length_prefixed(cbs, &cert_list))
941 tls13_client_certificate_verify_recv(struct tls13_ctx *ctx, CBS *cbs)
957 if (!CBS_get_u16(cbs, &signature_scheme))
959 if (!CBS_get_u16_length_prefixed(cbs, &signature))
1020 tls13_client_end_of_early_data_recv(struct tls13_ctx *ctx, CBS *cbs)
1026 tls13_client_finished_recv(struct tls13_ctx *ctx, CBS *cbs)
1065 if (!CBS_mem_equal(cbs, verify_data, verify_data_len)) {
1070 if (!CBS_write_bytes(cbs, ctx->hs->peer_finished,
1075 if (!CBS_skip(cbs, verify_data_len))