Home | History | Annotate | Download | only in bytestring

Lines Matching refs:contents

121   CBS data, contents;
130 if (!CBS_get_asn1(&data, &contents, 0x30) ||
131 CBS_len(&contents) != 2 ||
132 memcmp(CBS_data(&contents), "\x01\x02", 2) != 0) {
138 if (CBS_get_asn1(&data, &contents, 0x30)) {
144 if (CBS_get_asn1(&data, &contents, 0x30)) {
150 if (CBS_get_asn1(&data, &contents, 0x30)) {
156 if (CBS_get_asn1(&data, &contents, 0x30)) {
162 if (CBS_get_asn1(&data, &contents, 0x31)) {
174 if (!CBS_get_optional_asn1(&data, &contents, &present, 0xa0) ||
176 !CBS_get_optional_asn1_octet_string(&data, &contents, &present, 0xa0) ||
178 CBS_len(&contents) != 0 ||
179 !CBS_get_optional_asn1_octet_string(&data, &contents, NULL, 0xa0) ||
180 CBS_len(&contents) != 0 ||
188 if (!CBS_get_optional_asn1(&data, &contents, &present, 0xa0) ||
190 !CBS_get_optional_asn1(&data, &contents, &present, 0xa1) ||
192 CBS_len(&contents) != 3 ||
193 memcmp(CBS_data(&contents), "\x04\x01\x01", 3) != 0) {
199 if (!CBS_get_optional_asn1_octet_string(&data, &contents, &present, 0xa0) ||
201 CBS_len(&contents) != 0 ||
202 !CBS_get_optional_asn1_octet_string(&data, &contents, &present, 0xa1) ||
204 CBS_len(&contents) != 1 ||
205 CBS_data(&contents)[0] != 1) {
211 if (CBS_get_optional_asn1_octet_string(&data, &contents, &present, 0xa1)) {
345 CBB cbb, contents, inner_contents, inner_inner_contents;
349 !CBB_add_u8_length_prefixed(&cbb, &contents) ||
350 !CBB_add_u8_length_prefixed(&cbb, &contents) ||
351 !CBB_add_u8(&contents, 1) ||
352 CBB_len(&contents) != 1 ||
355 !CBB_add_u16_length_prefixed(&cbb, &contents) ||
356 !CBB_add_u16(&contents, 0x203) ||
357 !CBB_add_u24_length_prefixed(&cbb, &contents) ||
358 !CBB_add_u24(&contents, 0x40506) ||
359 !CBB_add_u8_length_prefixed(&cbb, &contents) ||
360 !CBB_add_u8_length_prefixed(&contents, &inner_contents) ||
375 CBB contents, inner_contents, inner_inner_contents;
385 if (!CBB_add_u8_length_prefixed(cbb.get(), &contents) ||
386 !CBB_add_u8_length_prefixed(cbb.get(), &contents) ||
387 !CBB_add_u8(&contents, 0xbb) ||
388 !CBB_add_u16_length_prefixed(cbb.get(), &contents) ||
389 !CBB_add_u16(&contents, 0xcccc) ||
390 !CBB_add_u24_length_prefixed(cbb.get(), &contents) ||
391 !CBB_add_u24(&contents, 0xdddddd) ||
392 !CBB_add_u8_length_prefixed(cbb.get(), &contents) ||
393 !CBB_add_u8(&contents, 0xff) ||
394 !CBB_add_u8_length_prefixed(&contents, &inner_contents) ||
402 CBB_discard_child(&contents);
423 CBB cbb, child, contents;
442 CBB_add_u8_length_prefixed(&child, &contents) ||
443 CBB_add_u16_length_prefixed(&child, &contents) ||
444 CBB_add_asn1(&child, &contents, 1) ||
468 CBB cbb, contents, inner_contents;
473 if (!CBB_add_asn1(&cbb, &contents, 0x30) ||
474 !CBB_add_bytes(&contents, (const uint8_t*) "\x01\x02\x03", 3) ||
490 if (!CBB_add_asn1(&cbb, &contents, 0x30) ||
491 !CBB_add_bytes(&contents, test_data.data(), 130) ||
507 if (!CBB_add_asn1(&cbb, &contents, 0x30) ||
508 !CBB_add_bytes(&contents, test_data.data(), 1000) ||
524 if (!CBB_add_asn1(&cbb, &contents, 0x30) ||
525 !CBB_add_asn1(&contents, &inner_contents, 0x30) ||
649 // Empty contents.