Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 20-Jun-2023 | - | ||||
ChangeLog | H A D | 08-May-2022 | 44.8 KiB | 1,666 | 942 | |
Makefile.am | H A D | 08-May-2022 | 8.7 KiB | 282 | 227 | |
Makefile.in | H A D | 20-Jun-2023 | 75 KiB | 2,110 | 1,898 | |
NTMakefile | H A D | 08-May-2022 | 9.7 KiB | 357 | 291 | |
README.template | H A D | 08-May-2022 | 3.1 KiB | 132 | 97 | |
asn1-common.h | H A D | 08-May-2022 | 2.2 KiB | 87 | 68 | |
asn1-template.h | H A D | 08-May-2022 | 5.4 KiB | 210 | 121 | |
asn1_compile-version.rc | H A D | 08-May-2022 | 1.6 KiB | 37 | 34 | |
asn1_err.et | H A D | 08-May-2022 | 1.3 KiB | 30 | 28 | |
asn1_gen.c | H A D | 08-May-2022 | 5 KiB | 189 | 124 | |
asn1_print.c | H A D | 08-May-2022 | 9.4 KiB | 356 | 291 | |
asn1_queue.h | H A D | 08-May-2022 | 6.6 KiB | 170 | 109 | |
asn1parse.c | H A D | 20-Jun-2023 | 96.5 KiB | 2,858 | 2,241 | |
asn1parse.h | H A D | 20-Jun-2023 | 9.6 KiB | 277 | 222 | |
asn1parse.y | H A D | 08-May-2022 | 21.4 KiB | 1,061 | 900 | |
canthandle.asn1 | H A D | 08-May-2022 | 791 | 35 | 24 | |
check-ber.c | H A D | 08-May-2022 | 16.8 KiB | 282 | 235 | |
check-common.c | H A D | 20-Jun-2023 | 10 KiB | 421 | 319 | |
check-common.h | H A D | 20-Jun-2023 | 3.7 KiB | 95 | 48 | |
check-der.c | H A D | 20-Jun-2023 | 29.2 KiB | 1,216 | 1,012 | |
check-gen.c | H A D | 20-Jun-2023 | 51.6 KiB | 1,815 | 1,516 | |
check-template.c | H A D | 20-Jun-2023 | 14.7 KiB | 522 | 416 | |
check-timegm.c | H A D | 08-May-2022 | 2.4 KiB | 84 | 38 | |
cms.asn1 | H A D | 08-May-2022 | 4.2 KiB | 158 | 120 | |
cms.opt | H A D | 08-May-2022 | 55 | 3 | 2 | |
der-private.h | H A D | 08-May-2022 | 2 KiB | 126 | 99 | |
der-protos.h | H A D | 08-May-2022 | 11.5 KiB | 695 | 554 | |
der.c | H A D | 08-May-2022 | 3.8 KiB | 145 | 96 | |
der.h | H A D | 08-May-2022 | 3.2 KiB | 110 | 57 | |
der_cmp.c | H A D | 20-Jun-2023 | 3.7 KiB | 123 | 79 | |
der_copy.c | H A D | 20-Jun-2023 | 5.1 KiB | 202 | 145 | |
der_format.c | H A D | 08-May-2022 | 4.1 KiB | 173 | 115 | |
der_free.c | H A D | 08-May-2022 | 3.2 KiB | 159 | 102 | |
der_get.c | H A D | 20-Jun-2023 | 17.5 KiB | 762 | 585 | |
der_length.c | H A D | 20-Jun-2023 | 5.6 KiB | 310 | 232 | |
der_locl.h | H A D | 08-May-2022 | 2.2 KiB | 66 | 22 | |
der_put.c | H A D | 20-Jun-2023 | 12.2 KiB | 569 | 471 | |
digest.asn1 | H A D | 08-May-2022 | 4.9 KiB | 180 | 149 | |
extra.c | H A D | 08-May-2022 | 3.8 KiB | 144 | 89 | |
fuzzer.c | H A D | 08-May-2022 | 16.2 KiB | 745 | 614 | |
gen.c | H A D | 20-Jun-2023 | 26.5 KiB | 1,079 | 930 | |
gen_copy.c | H A D | 20-Jun-2023 | 6.8 KiB | 255 | 200 | |
gen_decode.c | H A D | 20-Jun-2023 | 18.5 KiB | 744 | 663 | |
gen_encode.c | H A D | 08-May-2022 | 13.4 KiB | 554 | 473 | |
gen_free.c | H A D | 20-Jun-2023 | 5.5 KiB | 202 | 144 | |
gen_glue.c | H A D | 08-May-2022 | 4.3 KiB | 160 | 100 | |
gen_length.c | H A D | 08-May-2022 | 7.9 KiB | 284 | 228 | |
gen_locl.h | H A D | 20-Jun-2023 | 3.4 KiB | 108 | 56 | |
gen_seq.c | H A D | 08-May-2022 | 4 KiB | 122 | 66 | |
gen_template.c | H A D | 08-May-2022 | 24.8 KiB | 1,010 | 812 | |
hash.c | H A D | 08-May-2022 | 4.7 KiB | 209 | 125 | |
hash.h | H A D | 08-May-2022 | 3 KiB | 90 | 31 | |
heim_asn1.h | H A D | 08-May-2022 | 2.4 KiB | 55 | 16 | |
krb5.asn1 | H A D | 20-Jun-2023 | 22.8 KiB | 923 | 803 | |
krb5.opt | H A D | 08-May-2022 | 147 | 7 | 6 | |
kx509.asn1 | H A D | 08-May-2022 | 660 | 32 | 26 | |
lex.c | H A D | 20-Jun-2023 | 74.3 KiB | 2,740 | 1,980 | |
lex.h | H A D | 20-Jun-2023 | 1.8 KiB | 45 | 5 | |
lex.l | H A D | 08-May-2022 | 7.8 KiB | 302 | 250 | |
libasn1-exports.def | H A D | 08-May-2022 | 36.7 KiB | 1,595 | 1,594 | |
main.c | H A D | 20-Jun-2023 | 5.4 KiB | 225 | 162 | |
pkcs12.asn1 | H A D | 08-May-2022 | 2.3 KiB | 82 | 60 | |
pkcs8.asn1 | H A D | 08-May-2022 | 627 | 31 | 20 | |
pkcs9.asn1 | H A D | 08-May-2022 | 807 | 29 | 18 | |
pkinit.asn1 | H A D | 08-May-2022 | 5.5 KiB | 203 | 159 | |
rfc2459.asn1 | H A D | 08-May-2022 | 17.6 KiB | 586 | 444 | |
roken_rename.h | H A D | 08-May-2022 | 1.9 KiB | 49 | 9 | |
setchgpw2.asn1 | H A D | 08-May-2022 | 3.8 KiB | 194 | 160 | |
symbol.c | H A D | 08-May-2022 | 2.8 KiB | 111 | 62 | |
symbol.h | H A D | 08-May-2022 | 3.8 KiB | 170 | 108 | |
template.c | H A D | 08-May-2022 | 25.2 KiB | 1,131 | 909 | |
test.asn1 | H A D | 08-May-2022 | 4.6 KiB | 195 | 156 | |
test.gen | H A D | 08-May-2022 | 288 | 15 | 13 | |
timegm.c | H A D | 08-May-2022 | 3.9 KiB | 139 | 73 | |
version-script.map | H A D | 08-May-2022 | 135 | 7 | 5 |
README.template
1#!/bin/sh 2 3size .libs/libasn1.dylib 4size .libs/libasn1base.a | awk '{sum += $1} END {print sum}' | sed 's/^/TEXT baselib: /' 5size .libs/asn1_*.o | awk '{sum += $1} END {print sum}' | sed 's/^/generated code stubs: /' 6size *_asn1-template.o | awk '{sum += $1} END {print sum}' | sed 's/^/TEXT stubs: /' 7 8exit 0 9 10Notes about the template parser: 11 12- assumption: code is large, tables smaller 13 14- how to generate template based stubs: 15 16 make check asn1_compile_FLAGS=--template > log 17 18- pretty much the same as the generate code, except uses tables instead of code 19 20TODO: 21 - Make hdb work 22 23 - Fuzzing tests 24 25 - Performance testing 26 27 - ASN1_MALLOC_ENCODE() as a function, replaces encode_ and length_ 28 29 - Fix SIZE constraits 30 31 - Compact types that only contain on entry to not having a header. 32 33 34SIZE - Futher down is later generations of the template parser 35 36 code: 37 ================== 38 __TEXT __DATA __OBJC others dec hex 39 462848 12288 0 323584 798720 c3000 (O2) 40 41 trivial types: 42 ================== 43 __TEXT __DATA __OBJC others dec hex 44 446464 12288 0 323584 782336 bf000 (O2) 45 46 OPTIONAL 47 ================== 48 __TEXT __DATA __OBJC others dec hex 49 425984 16384 0 323584 765952 bb000 (O2) 50 51 SEQ OF 52 ================== 53 __TEXT __DATA __OBJC others dec hex 54 368640 32768 0 327680 729088 b2000 (O2) 55 348160 32768 0 327680 708608 ad000 (Os) 56 57 BOOLEAN 58 ================== 59 339968 32768 0 327680 700416 ab000 (Os) 60 61 TYPE_EXTERNAL: 62 ================== 63 331776 32768 0 327680 692224 a9000 (Os) 64 65 SET OF 66 ================== 67 327680 32768 0 327680 688128 a8000 (Os) 68 69 TYPE_EXTERNAL everywhere 70 ================== 71 __TEXT __DATA __OBJC others dec hex 72 167936 69632 0 327680 565248 8a000 (Os) 73 74 TAG uses ->ptr (header and trailer) 75 ================== 76 229376 102400 0 421888 753664 b8000 (O0) 77 78 TAG uses ->ptr (header only) 79 ================== 80 221184 77824 0 421888 720896 b0000 (O0) 81 82 BER support for octet string (not working) 83 ================== 84 180224 73728 0 417792 671744 a4000 (O2) 85 86 CHOICE and BIT STRING missign 87 ================== 88 __TEXT __DATA __OBJC others dec hex 89 172032 73728 0 417792 663552 a2000 (Os) 90 91 No accessor functions to global variable 92 ================== 93 __TEXT __DATA __OBJC others dec hex 94 159744 73728 0 393216 626688 99000 (Os) 95 96 All types tables (except choice) (id still objects) 97 ================== 98 __TEXT __DATA __OBJC others dec hex 99 167936 77824 0 421888 667648 a3000 100 base lib: 22820 101 102 __TEXT __DATA __OBJC others dec hex 103 ================== 104 167936 77824 0 421888 667648 a3000 (Os) 105 baselib: 22820 106 generated code stubs: 41472 107 TEXT stubs: 112560 108 109 All types, id still objects 110 ================== 111 __TEXT __DATA __OBJC others dec hex 112 155648 81920 0 430080 667648 a3000 (Os) 113 TEXT baselib: 23166 114 generated code stubs: 20796 115 TEXT stubs: 119891 116 117 All types, id still objects, dup compression 118 ================== 119 __TEXT __DATA __OBJC others dec hex 120 143360 65536 0 376832 585728 8f000 (Os) 121 TEXT baselib: 23166 122 generated code stubs: 20796 123 TEXT stubs: 107147 124 125 All types, dup compression, id vars 126 ================== 127 __TEXT __DATA __OBJC others dec hex 128 131072 65536 0 352256 548864 86000 129 TEXT baselib: 23166 130 generated code stubs: 7536 131 TEXT stubs: 107147 132