1
1
mirror of https://github.com/wader/fq.git synced 2024-12-21 12:21:39 +03:00
fq/format/asn1/testdata/tc11.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

11 lines
984 B
Plaintext

$ fq -d asn1_ber dv tc11.ber
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc11.ber (asn1_ber) 0x0-0xa.7 (11)
0x0|09 |. | class: "universal" (0) 0x0-0x0.1 (0.2)
0x0|09 |. | form: "primitive" (0) 0x0.2-0x0.2 (0.1)
0x0|09 |. | tag: "real" (0x9) 0x0.3-0x0.7 (0.5)
0x0| 09 | . | length: 9 0x1-0x1.7 (1)
0x0| 11 | . | binary_encoding: false 0x2-0x2 (0.1)
0x0| 11 | . | decimal_encoding: false 0x2.1-0x2.1 (0.1)
0x0| 11 | . | representation: 17 0x2.2-0x2.7 (0.6)
0x0| 20 20 30 31 35 36 32 35| | 015625| | value: 0 0x3-0xa.7 (8)