Lines Matching refs:cbs
350 CBS cbs; in dtls1_open_handshake() local
351 CBS_init(&cbs, record.data(), record.size()); in dtls1_open_handshake()
352 while (CBS_len(&cbs) > 0) { in dtls1_open_handshake()
356 if (!dtls1_parse_fragment(&cbs, &msg_hdr, &body)) { in dtls1_open_handshake()
459 bool dtls1_parse_fragment(CBS *cbs, struct hm_header_st *out_hdr, in dtls1_parse_fragment() argument
463 if (!CBS_get_u8(cbs, &out_hdr->type) || in dtls1_parse_fragment()
464 !CBS_get_u24(cbs, &out_hdr->msg_len) || in dtls1_parse_fragment()
465 !CBS_get_u16(cbs, &out_hdr->seq) || in dtls1_parse_fragment()
466 !CBS_get_u24(cbs, &out_hdr->frag_off) || in dtls1_parse_fragment()
467 !CBS_get_u24(cbs, &out_hdr->frag_len) || in dtls1_parse_fragment()
468 !CBS_get_bytes(cbs, out_body, out_hdr->frag_len)) { in dtls1_parse_fragment()
666 CBS cbs, body; in seal_next_message() local
668 CBS_init(&cbs, msg->data, msg->len); in seal_next_message()
669 if (!dtls1_parse_fragment(&cbs, &hdr, &body) || in seal_next_message()
674 CBS_len(&cbs) != 0) { in seal_next_message()