Lines Matching +full:y +full:- +full:rp

8 	uint32_t *rp;  member
19 unsigned y; in t0_parse7E_unsigned() local
21 y = *(*p) ++; in t0_parse7E_unsigned()
22 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_unsigned()
23 if (y < 0x80) { in t0_parse7E_unsigned()
36 x = (uint32_t)-neg; in t0_parse7E_signed()
38 unsigned y; in t0_parse7E_signed() local
40 y = *(*p) ++; in t0_parse7E_signed()
41 x = (x << 7) | (uint32_t)(y & 0x7F); in t0_parse7E_signed()
42 if (y < 0x80) { in t0_parse7E_signed()
44 return -(int32_t)~x - 1; in t0_parse7E_signed()
78 #define CTX ((br_x509_decoder_context *)(void *)((unsigned char *)t0ctx - offsetof(br_x509_decode…
89 ctx->err = 0; in br_x509_decoder_init()
90 ctx->hbuf = NULL; in br_x509_decoder_init()
91 ctx->hlen = 0; in br_x509_decoder_init()
93 ctx->append_dn = append_dn; in br_x509_decoder_init()
94 ctx->append_dn_ctx = append_dn_ctx; in br_x509_decoder_init()
95 ctx->cpu.dp = &ctx->dp_stack[0]; in br_x509_decoder_init()
96 ctx->cpu.rp = &ctx->rp_stack[0]; in br_x509_decoder_init()
97 br_x509_decoder_init_main(&ctx->cpu); in br_x509_decoder_init()
98 br_x509_decoder_run(&ctx->cpu); in br_x509_decoder_init()
106 ctx->hbuf = data; in br_x509_decoder_push()
107 ctx->hlen = len; in br_x509_decoder_push()
108 br_x509_decoder_run(&ctx->cpu); in br_x509_decoder_push()
354 #define T0_ENTER(ip, rp, slot) do { \ argument
357 t0_newip = &t0_codeblock[t0_caddr[(slot) - T0_INTERPRETED]]; \
359 (rp) += t0_lnum; \
360 *((rp) ++) = (uint32_t)((ip) - &t0_codeblock[0]) + (t0_lnum << 16); \
369 t0ctx->ip = &t0_codeblock[0]; \
370 T0_ENTER(t0ctx->ip, t0ctx->rp, slot); \
380 uint32_t *dp, *rp; in br_x509_decoder_run() local
383 #define T0_LOCAL(x) (*(rp - 2 - (x))) in br_x509_decoder_run()
384 #define T0_POP() (*-- dp) in br_x509_decoder_run()
385 #define T0_POPi() (*(int32_t *)(-- dp)) in br_x509_decoder_run()
386 #define T0_PEEK(x) (*(dp - 1 - (x))) in br_x509_decoder_run()
387 #define T0_PEEKi(x) (*(int32_t *)(dp - 1 - (x))) in br_x509_decoder_run()
390 #define T0_RPOP() (*-- rp) in br_x509_decoder_run()
391 #define T0_RPOPi() (*(int32_t *)(-- rp)) in br_x509_decoder_run()
392 #define T0_RPUSH(v) do { *rp = (v); rp ++; } while (0) in br_x509_decoder_run()
393 #define T0_RPUSHi(v) do { *(int32_t *)rp = (v); rp ++; } while (0) in br_x509_decoder_run()
396 uint32_t t0tmp = *(dp - 1 - t0len); \ in br_x509_decoder_run()
397 memmove(dp - t0len - 1, dp - t0len, t0len * sizeof *dp); \ in br_x509_decoder_run()
398 *(dp - 1) = t0tmp; \ in br_x509_decoder_run()
401 uint32_t t0tmp = *(dp - 2); \ in br_x509_decoder_run()
402 *(dp - 2) = *(dp - 1); \ in br_x509_decoder_run()
403 *(dp - 1) = t0tmp; \ in br_x509_decoder_run()
406 uint32_t t0tmp = *(dp - 3); \ in br_x509_decoder_run()
407 *(dp - 3) = *(dp - 2); \ in br_x509_decoder_run()
408 *(dp - 2) = *(dp - 1); \ in br_x509_decoder_run()
409 *(dp - 1) = t0tmp; \ in br_x509_decoder_run()
412 uint32_t t0tmp = *(dp - 1); \ in br_x509_decoder_run()
413 *(dp - 1) = *(dp - 2); \ in br_x509_decoder_run()
414 *(dp - 2) = *(dp - 3); \ in br_x509_decoder_run()
415 *(dp - 3) = t0tmp; \ in br_x509_decoder_run()
426 dp = ((t0_context *)t0ctx)->dp; in br_x509_decoder_run()
427 rp = ((t0_context *)t0ctx)->rp; in br_x509_decoder_run()
428 ip = ((t0_context *)t0ctx)->ip; in br_x509_decoder_run()
441 rp -= (t0x >> 16); in br_x509_decoder_run()
502 /* - */ in br_x509_decoder_run()
506 T0_PUSH(a - b); in br_x509_decoder_run()
511 /* -rot */ in br_x509_decoder_run()
529 T0_PUSH(-(uint32_t)(a < b)); in br_x509_decoder_run()
547 T0_PUSH(-(uint32_t)(a <= b)); in br_x509_decoder_run()
556 T0_PUSH(-(uint32_t)(a != b)); in br_x509_decoder_run()
565 T0_PUSH(-(uint32_t)(a == b)); in br_x509_decoder_run()
574 T0_PUSH(-(uint32_t)(a > b)); in br_x509_decoder_run()
583 T0_PUSH(-(uint32_t)(a >= b)); in br_x509_decoder_run()
611 /* copy-ec-pkey */ in br_x509_decoder_run()
615 CTX->pkey.key_type = BR_KEYTYPE_EC; in br_x509_decoder_run()
616 CTX->pkey.key.ec.curve = curve; in br_x509_decoder_run()
617 CTX->pkey.key.ec.q = CTX->pkey_data; in br_x509_decoder_run()
618 CTX->pkey.key.ec.qlen = qlen; in br_x509_decoder_run()
623 /* copy-rsa-pkey */ in br_x509_decoder_run()
627 CTX->pkey.key_type = BR_KEYTYPE_RSA; in br_x509_decoder_run()
628 CTX->pkey.key.rsa.n = CTX->pkey_data; in br_x509_decoder_run()
629 CTX->pkey.key.rsa.nlen = nlen; in br_x509_decoder_run()
630 CTX->pkey.key.rsa.e = CTX->pkey_data + nlen; in br_x509_decoder_run()
631 CTX->pkey.key.rsa.elen = elen; in br_x509_decoder_run()
636 /* data-get8 */ in br_x509_decoder_run()
657 const unsigned char *a1 = &CTX->pad[0]; in br_x509_decoder_run()
661 x = -(memcmp(a1 + 1, a2 + 1, len) == 0); in br_x509_decoder_run()
672 CTX->err = T0_POPi(); in br_x509_decoder_run()
681 T0_PUSH(-a); in br_x509_decoder_run()
700 /* read-blob-inner */ in br_x509_decoder_run()
704 size_t clen = CTX->hlen; in br_x509_decoder_run()
709 memcpy((unsigned char *)CTX + addr, CTX->hbuf, clen); in br_x509_decoder_run()
711 if (CTX->copy_dn && CTX->append_dn) { in br_x509_decoder_run()
712 CTX->append_dn(CTX->append_dn_ctx, CTX->hbuf, clen); in br_x509_decoder_run()
714 CTX->hbuf += clen; in br_x509_decoder_run()
715 CTX->hlen -= clen; in br_x509_decoder_run()
717 T0_PUSH(len - clen); in br_x509_decoder_run()
722 /* read8-low */ in br_x509_decoder_run()
724 if (CTX->hlen == 0) { in br_x509_decoder_run()
725 T0_PUSHi(-1); in br_x509_decoder_run()
727 unsigned char x = *CTX->hbuf ++; in br_x509_decoder_run()
728 if (CTX->copy_dn && CTX->append_dn) { in br_x509_decoder_run()
729 CTX->append_dn(CTX->append_dn_ctx, &x, 1); in br_x509_decoder_run()
731 CTX->hlen --; in br_x509_decoder_run()
766 T0_ENTER(ip, rp, t0x); in br_x509_decoder_run()
770 ((t0_context *)t0ctx)->dp = dp; in br_x509_decoder_run()
771 ((t0_context *)t0ctx)->rp = rp; in br_x509_decoder_run()
772 ((t0_context *)t0ctx)->ip = ip; in br_x509_decoder_run()