Lines Matching refs:header_len
69 size_t header_len; in cbs_find_ber() local
71 if (!CBS_get_any_ber_asn1_element(&in, &contents, &tag, &header_len)) { in cbs_find_ber()
74 if (CBS_len(&contents) == header_len && in cbs_find_ber()
75 header_len > 0 && in cbs_find_ber()
76 CBS_data(&contents)[header_len-1] == 0x80) { in cbs_find_ber()
87 if (!CBS_skip(&contents, header_len) || in cbs_find_ber()
99 static char is_eoc(size_t header_len, CBS *contents) { in is_eoc() argument
100 return header_len == 2 && CBS_len(contents) == 2 && in is_eoc()
122 size_t header_len; in cbs_convert_ber() local
125 if (!CBS_get_any_ber_asn1_element(in, &contents, &tag, &header_len)) { in cbs_convert_ber()
129 if (is_eoc(header_len, &contents)) { in cbs_convert_ber()
155 if (CBS_len(&contents) == header_len && header_len > 0 && in cbs_convert_ber()
156 CBS_data(&contents)[header_len - 1] == 0x80) { in cbs_convert_ber()
166 if (!CBS_skip(&contents, header_len)) { in cbs_convert_ber()