1
1
mirror of https://github.com/wader/fq.git synced 2024-12-24 05:41:38 +03:00
fq/format/asn1/testdata/tc5.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

8 lines
666 B
Plaintext

$ fq -d asn1_ber dv tc5.ber
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc5.ber (asn1_ber) 0x0-0xc.7 (13)
0x0|9f |. | class: "context" (2) 0x0-0x0.1 (0.2)
0x0|9f |. | form: "primitive" (0) 0x0.2-0x0.2 (0.1)
0x0|9f ff ff ff ff ff ff ff ff 7f |.......... | tag: 18446744073709551615 0x0.3-0x9.7 (9.5)
0x0| 81 01 | .. | length: 1 0xa-0xb.7 (2)
0x0| 40| | @| | value: raw bits 0xc-0xc.7 (1)