mirror of
https://github.com/wader/fq.git
synced 2024-12-27 07:24:48 +03:00
0829c167cc
Basic support, can also do CER and DER but without any extra validation. No schema support. Redo format doc.md usage a bit, now format/<dir>/<format>.md instead. Related to #20
25 lines
2.5 KiB
Plaintext
25 lines
2.5 KiB
Plaintext
$ fq -d asn1_ber dv tc38.ber
|
|
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc38.ber (asn1_ber) 0x0-0xf.7 (16)
|
|
0x00|23 |# | class: "universal" (0) 0x0-0x0.1 (0.2)
|
|
0x00|23 |# | form: "constructed" (1) 0x0.2-0x0.2 (0.1)
|
|
0x00|23 |# | tag: "bit_string" (0x3) 0x0.3-0x0.7 (0.5)
|
|
0x00| 80 | . | length: "indefinite" (0) 0x1-0x1.7 (1)
|
|
| | | constructed[0:2]: 0x2-0xd.7 (12)
|
|
| | | [0]{}: object 0x2-0x6.7 (5)
|
|
0x00| 03 | . | class: "universal" (0) 0x2-0x2.1 (0.2)
|
|
0x00| 03 | . | form: "primitive" (0) 0x2.2-0x2.2 (0.1)
|
|
0x00| 03 | . | tag: "bit_string" (0x3) 0x2.3-0x2.7 (0.5)
|
|
0x00| 03 | . | length: 3 0x3-0x3.7 (1)
|
|
0x00| 00 | . | unused_bits_count: 0 0x4-0x4.7 (1)
|
|
0x00| 0a 3b | .; | value: raw bits 0x5-0x6.7 (2)
|
|
| | | [1]{}: object 0x7-0xd.7 (7)
|
|
0x00| 03 | . | class: "universal" (0) 0x7-0x7.1 (0.2)
|
|
0x00| 03 | . | form: "primitive" (0) 0x7.2-0x7.2 (0.1)
|
|
0x00| 03 | . | tag: "bit_string" (0x3) 0x7.3-0x7.7 (0.5)
|
|
0x00| 05 | . | length: 5 0x8-0x8.7 (1)
|
|
0x00| 04 | . | unused_bits_count: 4 0x9-0x9.7 (1)
|
|
0x00| 5f 29 1c d0 | _).. | value: raw bits 0xa-0xd.3 (3.4)
|
|
0x00| d0 | . | unused_bits: raw bits 0xd.4-0xd.7 (0.4)
|
|
0x00| 00 00| ..| end_marker: 0 0xe-0xf.7 (2)
|
|
0x0|0a 3b 5f 29 1c d0| |.;_)..| | value: raw bits 0x0-0x5.3 (5.4)
|