1
1
mirror of https://github.com/wader/fq.git synced 2024-12-24 13:52:02 +03:00
fq/format/asn1/testdata/tc22.ber.fqtest
Mattias Wadman 0829c167cc asn1_ber: Add decoder
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
2022-02-06 22:13:03 +01:00

15 lines
1.4 KiB
Plaintext

$ fq -d asn1_ber dv tc22.ber
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc22.ber (asn1_ber) 0x0-0x11.7 (18)
0x00|06 |. | class: "universal" (0) 0x0-0x0.1 (0.2)
0x00|06 |. | form: "primitive" (0) 0x0.2-0x0.2 (0.1)
0x00|06 |. | tag: "object_identifier" (0x6) 0x0.3-0x0.7 (0.5)
0x00| 10 | . | length: 16 0x1-0x1.7 (1)
| | | value[0:7]: 0x2-0x11.7 (16)
0x00| ff | . | [0]: 6 oid 0x2-0x2.7 (1)
0x00| ff | . | [1]: 15 oid 0x2-0x2.7 (1)
0x00| ff ff ff ff ff ff ff ff ff 0f | .......... | [2]: 18446744073709551503 oid 0x3-0xc.7 (10)
0x00| 85 03 | .. | [3]: 643 oid 0xd-0xe.7 (2)
0x00| 02| .| [4]: 2 oid 0xf-0xf.7 (1)
0x10|02 |. | [5]: 2 oid 0x10-0x10.7 (1)
0x10| 03| | .| | [6]: 3 oid 0x11-0x11.7 (1)