Lines Matching refs:contents
67 CBS contents; 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()
76 CBS_data(&contents)[header_len-1] == 0x80) { in cbs_find_ber()
87 if (!CBS_skip(&contents, header_len) || in cbs_find_ber()
88 !cbs_find_ber(&contents, ber_found, depth + 1)) { 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()
101 OPENSSL_memcmp(CBS_data(contents), "\x00\x00", 2) == 0; in is_eoc()
120 CBS contents; 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()
172 if (!cbs_convert_ber(&contents, out_contents, child_string_tag, in cbs_convert_ber()
178 if (!CBB_add_bytes(out_contents, CBS_data(&contents), in cbs_convert_ber()
179 CBS_len(&contents))) { in cbs_convert_ber()