1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 23:15:04 +03:00
fq/format/asn1/testdata/tc17.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

10 lines
815 B
Plaintext

$ fq -d asn1_ber d tc17.ber
|00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|.{}: tc17.ber (asn1_ber)
| | | error: asn1_ber: S(exp): failed at position 4 (read size 0 seek pos 0): nBits must be 0-64 (72)
0x00|09 |. | class: "universal" (0)
0x00|09 |. | form: "primitive" (0)
0x00|09 |. | tag: "real" (0x9)
0x00| 14 | . | length: 20
0x00| af 09 fe ff ff ff ff ff ff ff ff 05 05 05| ..............| unknown0: raw bits
0x10|05 05 05 05 05 05| |......| |