Home | History | Annotate | Download | only in bytestring

Lines Matching refs:child

80     // Only top-level |CBB|s are cleaned up. Child |CBB|s are non-owning. They
203 // fail all following calls. In particular, |cbb->child| may point to invalid
209 if (cbb->child == NULL || cbb->child->pending_len_len == 0) {
213 child_start = cbb->child->offset + cbb->child->pending_len_len;
215 if (!CBB_flush(cbb->child) ||
216 child_start < cbb->child->offset ||
223 if (cbb->child->pending_is_asn1) {
230 assert (cbb->child->pending_len_len == 1);
262 cbb->base->buf[cbb->child->offset++] = initial_length_byte;
263 cbb->child->pending_len_len = len_len - 1;
266 for (i = cbb->child->pending_len_len - 1; i < cbb->child->pending_len_len;
268 cbb->base->buf[cbb->child->offset + i] = (uint8_t)len;
275 cbb->child->base = NULL;
276 cbb->child = NULL;
286 assert(cbb->child == NULL);
291 assert(cbb->child == NULL);
313 cbb->child = out_contents;
314 cbb->child->offset = offset;
315 cbb->child->pending_len_len = len_len;
316 cbb->child->pending_is_asn1 = 0;
384 cbb->child = out_contents;
385 cbb->child->offset = offset;
386 cbb->child->pending_len_len = 1;
387 cbb->child->pending_is_asn1 = 1;
421 if (cbb->child != NULL ||
470 if (cbb->child == NULL) {
474 cbb->base->len = cbb->child->offset;
476 cbb->child->base = NULL;
477 cbb->child = NULL;
481 CBB child;
484 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_INTEGER)) {
497 if ((byte & 0x80) && !CBB_add_u8(&child, 0)) {
502 if (!CBB_add_u8(&child, byte)) {
508 if (!started && !CBB_add_u8(&child, 0)) {
516 CBB child;
517 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_OCTETSTRING) ||
518 !CBB_add_bytes(&child, data, data_len) ||
527 CBB child;
528 if (!CBB_add_asn1(cbb, &child, CBS_ASN1_BOOLEAN) ||
529 !CBB_add_u8(&child, value != 0 ? 0xff : 0) ||