Lines Matching refs:cbb
153 ScopedCBB cbb; in dtls1_hm_fragment_new() local
170 if (!CBB_init_fixed(cbb.get(), frag->data, DTLS1_HM_HEADER_LENGTH) || in dtls1_hm_fragment_new()
171 !CBB_add_u8(cbb.get(), msg_hdr->type) || in dtls1_hm_fragment_new()
172 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
173 !CBB_add_u16(cbb.get(), msg_hdr->seq) || in dtls1_hm_fragment_new()
174 !CBB_add_u24(cbb.get(), 0 /* frag_off */) || in dtls1_hm_fragment_new()
175 !CBB_add_u24(cbb.get(), msg_hdr->msg_len) || in dtls1_hm_fragment_new()
176 !CBB_finish(cbb.get(), NULL, NULL)) { in dtls1_hm_fragment_new()
506 bool dtls1_init_message(SSL *ssl, CBB *cbb, CBB *body, uint8_t type) { in dtls1_init_message() argument
508 if (!CBB_init(cbb, 64) || in dtls1_init_message()
509 !CBB_add_u8(cbb, type) || in dtls1_init_message()
510 !CBB_add_u24(cbb, 0 /* length (filled in later) */) || in dtls1_init_message()
511 !CBB_add_u16(cbb, ssl->d1->handshake_write_seq) || in dtls1_init_message()
512 !CBB_add_u24(cbb, 0 /* offset */) || in dtls1_init_message()
513 !CBB_add_u24_length_prefixed(cbb, body)) { in dtls1_init_message()
520 bool dtls1_finish_message(SSL *ssl, CBB *cbb, Array<uint8_t> *out_msg) { in dtls1_finish_message() argument
521 if (!CBBFinishArray(cbb, out_msg) || in dtls1_finish_message()
689 ScopedCBB cbb; in seal_next_message() local
692 if (!CBB_init_fixed(cbb.get(), frag, max_frag) || in seal_next_message()
693 !CBB_add_u8(cbb.get(), hdr.type) || in seal_next_message()
694 !CBB_add_u24(cbb.get(), hdr.msg_len) || in seal_next_message()
695 !CBB_add_u16(cbb.get(), hdr.seq) || in seal_next_message()
696 !CBB_add_u24(cbb.get(), ssl->d1->outgoing_offset) || in seal_next_message()
697 !CBB_add_u24(cbb.get(), todo) || in seal_next_message()
698 !CBB_add_bytes(cbb.get(), CBS_data(&body), todo) || in seal_next_message()
699 !CBB_finish(cbb.get(), NULL, &frag_len)) { in seal_next_message()