Lines Matching refs:conv

271 	const auto conv = [] (asn_len_t alen, asn_len_t vlen, uint8_t type,  variable
294 conv(2, 0, ASN_TYPE_OCTETSTRING, "x04:00"_cbuf);
308 const auto conv = [] (const auto &buf, uint64_t xval) { in __anon4d4e46190302() variable
335 conv("x46:01:00"_cbuf, 0x0ULL);
336 conv("x46:01:01"_cbuf, 0x1ULL);
337 conv("x46:01:7f"_cbuf, 0x7fULL);
339 conv("x46:02:00:80"_cbuf, 0x80ULL);
340 conv("x46:02:00:ff"_cbuf, 0xffULL);
341 conv("x46:02:7f:ff"_cbuf, 0x7fffULL);
343 conv("x46:03:00:80:00"_cbuf, 0x8000ULL);
344 conv("x46:03:00:ff:ff"_cbuf, 0xffffULL);
345 conv("x46:03:7f:ff:ff"_cbuf, 0x7fffffULL);
347 conv("x46:04:00:80:00:00"_cbuf, 0x800000ULL);
348 conv("x46:04:00:ff:ff:ff"_cbuf, 0xffffffULL);
349 conv("x46:04:7f:ff:ff:ff"_cbuf, 0x7fffffffULL);
351 conv("x46:05:00:80:00:00:00"_cbuf, 0x80000000ULL);
352 conv("x46:05:00:ff:ff:ff:ff"_cbuf, 0xffffffffULL);
353 conv("x46:05:7f:ff:ff:ff:ff"_cbuf, 0x7fffffffffULL);
355 conv("x46:06:00:80:00:00:00:00"_cbuf, 0x8000000000ULL);
356 conv("x46:06:00:ff:ff:ff:ff:ff"_cbuf, 0xffffffffffULL);
357 conv("x46:06:7f:ff:ff:ff:ff:ff"_cbuf, 0x7fffffffffffULL);
359 conv("x46:07:00:80:00:00:00:00:00"_cbuf, 0x800000000000ULL);
360 conv("x46:07:00:ff:ff:ff:ff:ff:ff"_cbuf, 0xffffffffffffULL);
361 conv("x46:07:7f:ff:ff:ff:ff:ff:ff"_cbuf, 0x7fffffffffffffULL);
363 conv("x46:08:00:80:00:00:00:00:00:00"_cbuf, 0x80000000000000ULL);
364 conv("x46:08:00:ff:ff:ff:ff:ff:ff:ff"_cbuf, 0xffffffffffffffULL);
365 conv("x46:08:7f:ff:ff:ff:ff:ff:ff:ff"_cbuf, 0x7fffffffffffffffULL);
367 conv("x46:09:00:80:00:00:00:00:00:00:00"_cbuf, 0x8000000000000000ULL);
368 conv("x46:09:00:ff:ff:ff:ff:ff:ff:ff:ff"_cbuf, 0xffffffffffffffffULL);
420 const auto conv = [] (asn_len_t alen, uint64_t val, const auto &buf) { in __anon4d4e46190502() variable
436 conv(3, 0x0, "x46:01:00"_cbuf);
437 conv(3, 0x1, "x46:01:01"_cbuf);
438 conv(3, 0x7f, "x46:01:7f"_cbuf);
440 conv(4, 0x80, "x46:02:00:80"_cbuf);
441 conv(4, 0xff, "x46:02:00:ff"_cbuf);
442 conv(4, 0x7fff, "x46:02:7f:ff"_cbuf);
444 conv(5, 0x8000, "x46:03:00:80:00"_cbuf);
445 conv(5, 0xffff, "x46:03:00:ff:ff"_cbuf);
446 conv(5, 0x7fffff, "x46:03:7f:ff:ff"_cbuf);
448 conv(6, 0x800000, "x46:04:00:80:00:00"_cbuf);
449 conv(6, 0xffffff, "x46:04:00:ff:ff:ff"_cbuf);
450 conv(6, 0x7fffffff, "x46:04:7f:ff:ff:ff"_cbuf);
452 conv(7, 0x80000000, "x46:05:00:80:00:00:00"_cbuf);
453 conv(7, 0xffffffff, "x46:05:00:ff:ff:ff:ff"_cbuf);
454 conv(7, 0x7fffffffff, "x46:05:7f:ff:ff:ff:ff"_cbuf);
456 conv(8, 0x8000000000, "x46:06:00:80:00:00:00:00"_cbuf);
457 conv(8, 0xffffffffff, "x46:06:00:ff:ff:ff:ff:ff"_cbuf);
458 conv(8, 0x7fffffffffff, "x46:06:7f:ff:ff:ff:ff:ff"_cbuf);
460 conv(9, 0x800000000000, "x46:07:00:80:00:00:00:00:00"_cbuf);
461 conv(9, 0xffffffffffff, "x46:07:00:ff:ff:ff:ff:ff:ff"_cbuf);
462 conv(9, 0x7fffffffffffff, "x46:07:7f:ff:ff:ff:ff:ff:ff"_cbuf);
464 conv(10, 0x80000000000000, "x46:08:00:80:00:00:00:00:00:00"_cbuf);
465 conv(10, 0xffffffffffffff, "x46:08:00:ff:ff:ff:ff:ff:ff:ff"_cbuf);
466 conv(10, 0x7fffffffffffffff, "x46:08:7f:ff:ff:ff:ff:ff:ff:ff"_cbuf);
468 conv(11, 0x8000000000000000, "x46:09:00:80:00:00:00:00:00:00:00"_cbuf);
469 conv(11, 0xffffffffffffffff, "x46:09:00:ff:ff:ff:ff:ff:ff:ff:ff"_cbuf);
500 const auto conv = [] (const auto &buf, uint32_t xval) { in __anon4d4e46190702() variable
526 conv("x41:01:00"_cbuf, 0x0U);
527 conv("x41:01:01"_cbuf, 0x1U);
528 conv("x41:01:7f"_cbuf, 0x7fU);
530 conv("x41:02:00:80"_cbuf, 0x80U);
531 conv("x41:02:00:ff"_cbuf, 0xffU);
532 conv("x41:02:7f:ff"_cbuf, 0x7fffU);
534 conv("x41:03:00:80:00"_cbuf, 0x8000U);
535 conv("x41:03:00:ff:ff"_cbuf, 0xffffU);
536 conv("x41:03:7f:ff:ff"_cbuf, 0x7fffffU);
538 conv("x41:04:00:80:00:00"_cbuf, 0x800000U);
539 conv("x41:04:00:ff:ff:ff"_cbuf, 0xffffffU);
540 conv("x41:04:7f:ff:ff:ff"_cbuf, 0x7fffffffU);
542 conv("x41:05:00:80:00:00:00"_cbuf, 0x80000000U);
543 conv("x41:05:00:ff:ff:ff:ff"_cbuf, 0xffffffffU);
597 const auto conv = [] (asn_len_t alen, uint32_t val, const auto &buf) { in __anon4d4e46190902() variable
613 conv(3, 0x0, "x41:01:00"_cbuf);
614 conv(3, 0x1, "x41:01:01"_cbuf);
615 conv(3, 0x7f, "x41:01:7f"_cbuf);
617 conv(4, 0x80, "x41:02:00:80"_cbuf);
618 conv(4, 0xff, "x41:02:00:ff"_cbuf);
619 conv(4, 0x7fff, "x41:02:7f:ff"_cbuf);
621 conv(5, 0x8000, "x41:03:00:80:00"_cbuf);
622 conv(5, 0xffff, "x41:03:00:ff:ff"_cbuf);
623 conv(5, 0x7fffff, "x41:03:7f:ff:ff"_cbuf);
625 conv(6, 0x800000, "x41:04:00:80:00:00"_cbuf);
626 conv(6, 0xffffff, "x41:04:00:ff:ff:ff"_cbuf);
627 conv(6, 0x7fffffff, "x41:04:7f:ff:ff:ff"_cbuf);
629 conv(7, 0x80000000, "x41:05:00:80:00:00:00"_cbuf);
630 conv(7, 0xffffffff, "x41:05:00:ff:ff:ff:ff"_cbuf);
657 const auto conv = [] (const auto &buf, int32_t xval) { in __anon4d4e46190b02() variable
683 conv("x02:01:00"_cbuf, 0x0);
684 conv("x02:01:01"_cbuf, 0x1);
685 conv("x02:01:7f"_cbuf, 0x7f);
686 conv("x02:01:ff"_cbuf, -0x1);
687 conv("x02:01:80"_cbuf, -0x80);
689 conv("x02:02:00:80"_cbuf, 0x80);
690 conv("x02:02:00:ff"_cbuf, 0xff);
691 conv("x02:02:7f:ff"_cbuf, 0x7fff);
692 conv("x02:02:ff:7f"_cbuf, -0x81);
693 conv("x02:02:ff:01"_cbuf, -0xff);
694 conv("x02:02:ff:00"_cbuf, -0x100);
695 conv("x02:02:80:00"_cbuf, -0x8000);
697 conv("x02:03:00:80:00"_cbuf, 0x8000);
698 conv("x02:03:00:ff:ff"_cbuf, 0xffff);
699 conv("x02:03:7f:ff:ff"_cbuf, 0x7fffff);
700 conv("x02:03:ff:7f:ff"_cbuf, -0x8001);
701 conv("x02:03:ff:00:01"_cbuf, -0xffff);
702 conv("x02:03:ff:00:00"_cbuf, -0x10000);
703 conv("x02:03:80:00:00"_cbuf, -0x800000);
705 conv("x02:04:00:80:00:00"_cbuf, 0x800000);
706 conv("x02:04:00:ff:ff:ff"_cbuf, 0xffffff);
707 conv("x02:04:7f:ff:ff:ff"_cbuf, 0x7fffffff);
708 conv("x02:04:ff:7f:ff:ff"_cbuf, -0x800001);
709 conv("x02:04:ff:00:00:01"_cbuf, -0xffffff);
710 conv("x02:04:ff:00:00:00"_cbuf, -0x1000000);
711 conv("x02:04:80:00:00:00"_cbuf, -0x80000000);
774 const auto conv = [] (asn_len_t alen, int32_t val, const auto &buf) { in __anon4d4e46190d02() variable
790 conv(3, 0x0, "x02:01:00"_cbuf);
791 conv(3, 0x1, "x02:01:01"_cbuf);
792 conv(3, 0x7f, "x02:01:7f"_cbuf);
793 conv(3, -0x1, "x02:01:ff"_cbuf);
794 conv(3, -0x80, "x02:01:80"_cbuf);
796 conv(4, 0x80, "x02:02:00:80"_cbuf);
797 conv(4, 0xff, "x02:02:00:ff"_cbuf);
798 conv(4, 0x7fff, "x02:02:7f:ff"_cbuf);
799 conv(4, -0x81, "x02:02:ff:7f"_cbuf);
800 conv(4, -0xff, "x02:02:ff:01"_cbuf);
801 conv(4, -0x100, "x02:02:ff:00"_cbuf);
802 conv(4, -0x8000, "x02:02:80:00"_cbuf);
804 conv(5, 0x8000, "x02:03:00:80:00"_cbuf);
805 conv(5, 0xffff, "x02:03:00:ff:ff"_cbuf);
806 conv(5, 0x7fffff, "x02:03:7f:ff:ff"_cbuf);
807 conv(5, -0x8001, "x02:03:ff:7f:ff"_cbuf);
808 conv(5, -0xffff, "x02:03:ff:00:01"_cbuf);
809 conv(5, -0x10000, "x02:03:ff:00:00"_cbuf);
810 conv(5, -0x800000, "x02:03:80:00:00"_cbuf);
812 conv(6, 0x800000, "x02:04:00:80:00:00"_cbuf);
813 conv(6, 0xffffff, "x02:04:00:ff:ff:ff"_cbuf);
814 conv(6, 0x7fffffff, "x02:04:7f:ff:ff:ff"_cbuf);
815 conv(6, -0x800001, "x02:04:ff:7f:ff:ff"_cbuf);
816 conv(6, -0xffffff, "x02:04:ff:00:00:01"_cbuf);
817 conv(6, -0x1000000, "x02:04:ff:00:00:00"_cbuf);
818 conv(6, -0x80000000, "x02:04:80:00:00:00"_cbuf);
849 const auto conv = [] (const auto &buf, const asn_oid &xval) { in __anon4d4e46190f02() variable
874 conv("x06:01:00"_cbuf, asn_oid {2, {0, 0}});
875 conv("x06:01:28"_cbuf, asn_oid {2, {1, 0}});
876 conv("x06:01:50"_cbuf, asn_oid {2, {2, 0}});
878 conv("x06:01:27"_cbuf, asn_oid {2, {0, 39}});
879 conv("x06:01:4f"_cbuf, asn_oid {2, {1, 39}});
880 conv("x06:01:7f"_cbuf, asn_oid {2, {2, 47}});
882 conv("x06:02:81:00"_cbuf, asn_oid {2, {2, 48}});
883 conv("x06:02:ff:7f"_cbuf, asn_oid {2, {2, 16303}});
884 conv("x06:03:ff:ff:7f"_cbuf, asn_oid {2, {2, 2097071}});
885 conv("x06:04:ff:ff:ff:7f"_cbuf, asn_oid {2, {2, 268435375}});
886 conv("x06:05:8f:ff:ff:ff:7f"_cbuf, asn_oid {2, {2, 4294967215}});
889conv("x06:82:02:7b:8f:ff:ff:ff:7f:8f:ff:ff:ff:7f:8f:ff:ff:ff:7f:8f:ff:ff:ff:7f:8f:ff:ff:ff:7f:8f:f…
951 const auto conv = [] (asn_len_t alen, const asn_oid &val, const auto &buf) { in __anon4d4e46191102() variable
967 conv(3, asn_oid {2, {0, 0}}, "x06:01:00"_cbuf);
968 conv(3, asn_oid {2, {1, 0}}, "x06:01:28"_cbuf);
969 conv(3, asn_oid {2, {2, 0}}, "x06:01:50"_cbuf);
971 conv(3, asn_oid {2, {0, 39}}, "x06:01:27"_cbuf);
972 conv(3, asn_oid {2, {1, 39}}, "x06:01:4f"_cbuf);
973 conv(3, asn_oid {2, {2, 47}}, "x06:01:7f"_cbuf);
975 conv(4, asn_oid {2, {2, 48}}, "x06:02:81:00"_cbuf);
976 conv(4, asn_oid {2, {2, 16303}}, "x06:02:ff:7f"_cbuf);
977 conv(5, asn_oid {2, {2, 2097071}}, "x06:03:ff:ff:7f"_cbuf);
978 conv(6, asn_oid {2, {2, 268435375}}, "x06:04:ff:ff:ff:7f"_cbuf);
979 conv(7, asn_oid {2, {2, 4294967215}}, "x06:05:8f:ff:ff:ff:7f"_cbuf);
1005 conv(5 * (128 - 1) + 4, asn_oid {128, {