Lines Matching full:node
316 QCryptoDerEncodeNode *node = g_new0(QCryptoDerEncodeNode, 1); in qcrypto_der_encode_prim() local
319 node->tag = tag; in qcrypto_der_encode_prim()
320 node->data = data; in qcrypto_der_encode_prim()
321 node->dlen = dlen; in qcrypto_der_encode_prim()
322 node->parent = ctx->current_parent; in qcrypto_der_encode_prim()
326 node->parent->dlen += 1 + nbytes_len + dlen; in qcrypto_der_encode_prim()
328 ctx->tail->next = node; in qcrypto_der_encode_prim()
329 ctx->tail = node; in qcrypto_der_encode_prim()
343 QCryptoDerEncodeNode *node = g_new0(QCryptoDerEncodeNode, 1); in qcrypto_der_encode_cons_begin() local
345 node->tag = tag; in qcrypto_der_encode_cons_begin()
346 node->parent = ctx->current_parent; in qcrypto_der_encode_cons_begin()
347 ctx->current_parent = node; in qcrypto_der_encode_cons_begin()
348 ctx->tail->next = node; in qcrypto_der_encode_cons_begin()
349 ctx->tail = node; in qcrypto_der_encode_cons_begin()
419 QCryptoDerEncodeNode *node, *prev; in qcrypto_der_encode_ctx_flush_and_free() local
423 (node = prev->next) && (prev->next = node->next, 1);) { in qcrypto_der_encode_ctx_flush_and_free()
425 *dst++ = node->tag; in qcrypto_der_encode_ctx_flush_and_free()
428 qcrypto_der_encode_length(node->dlen, dst, &len); in qcrypto_der_encode_ctx_flush_and_free()
432 if (node->data) { in qcrypto_der_encode_ctx_flush_and_free()
433 memcpy(dst, node->data, node->dlen); in qcrypto_der_encode_ctx_flush_and_free()
434 dst += node->dlen; in qcrypto_der_encode_ctx_flush_and_free()
436 g_free(node); in qcrypto_der_encode_ctx_flush_and_free()