1
1
mirror of https://github.com/wader/fq.git synced 2024-12-21 04:11:55 +03:00
fq/format/asn1/testdata
Mattias Wadman 3b717c3ba4 interp: Add to/from<encoding> for some common serialzations, encodings and hashes
Add toxml/fromxml for XML encoding, mighe be lossy on ordering
fromxml has {seq:bool} to add #seq attributes to improve ordering
toxml has {indent:number} to choose space indent depth

Add tojson, same as in jq but also has {indent:number} options

Add toyaml/fromyaml for YAML

Add totoml/fromtoml for TOML

Add tojq/fromjq for jq-flavored JSON (optional quotes for keys, comments and trailing commas support)

Add tocsv/fromcsv for CSV
formcvs takes {comma:string, comment:string} for custom separtor and comment character

Rename/split hex into tohex/fromhex
Rename/split base64 into tobase64/frombase64
tobase64/frombase64 takes {encoding:string} option for base64 flavour (std, url, rawstd, rawurl)

Add to/from<format> urlpath, urlquery, url, xmlentities, base64, hex

Add to<hash> md4, md5, sha1, sha256, sha512, sha3_224, sha3_256, sha3_384, sha3_512

Add to/from<encoding> iso8859-1, utf8, utf16, utf16le, utf16be
2022-05-28 16:31:20 +02:00
..
ed25519.cer asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
ed25519.cer.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
laymans_guide_examples.fqtest interp: Add to/from<encoding> for some common serialzations, encodings and hashes 2022-05-28 16:31:20 +02:00
laymans_guide_examples.json asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
letsencrypt-x3.cer asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
letsencrypt-x3.cer.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
openssl.rsa.key.der asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
openssl.rsa.key.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
README.md asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
sig-p256-ber.p7m asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
sig-p256-ber.p7m.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
sig-p256-der.p7m asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
sig-p256-der.p7m.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
sig-rsa1024-sha1.p7s asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
sig-rsa1024-sha1.p7s.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc1.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc1.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc1.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc2.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc2.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc2.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc3.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc3.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc3.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc4.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc4.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc4.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc5.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc5.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc5.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc6.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc6.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc6.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc7.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc7.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc7.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc8.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc8.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc8.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc9.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc9.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc9.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc10.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc10.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc10.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc11.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc11.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc11.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc12.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc12.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc12.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc13.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc13.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc13.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc14.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc14.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc14.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc15.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc15.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc15.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc16.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc16.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc16.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc17.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc17.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc17.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc18.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc18.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc18.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc19.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc19.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc19.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc20.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc20.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc20.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc21.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc21.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc21.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc22.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc22.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc22.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc23.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc23.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc23.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc24.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc24.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc24.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc25.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc25.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc25.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc26.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc26.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc26.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc27.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc27.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc27.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc28.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc28.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc28.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc29.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc29.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc29.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc30.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc30.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc30.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc31.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc31.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc31.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc32.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc32.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc32.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc33.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc33.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc33.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc34.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc34.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc34.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc35.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc35.ber.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc35.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc36.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc36.ber.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc36.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc37.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc37.ber.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc37.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc38.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc38.ber.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc38.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc39.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc39.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc39.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc40.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc40.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc40.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc41.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc41.ber.fqtest interp: Refactor dump and revert #259 for now 2022-05-20 12:38:43 +02:00
tc41.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc42.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc42.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc42.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc43.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc43.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc43.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc44.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc44.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc44.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc45.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc45.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc45.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc46.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc46.ber.fqtest asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc46.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc47.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc47.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc47.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc48.ber asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
tc48.ber.fqtest decode: Keep decode tree on RangeFn error 2022-05-03 10:57:43 +02:00
tc48.xml asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
test.pem asn1_ber: Add decoder 2022-02-06 22:13:03 +01:00
test.pem.fqtest format: Simplify torepr, no need for _f function 2022-03-08 17:09:48 +01:00

tc* files from http://www.strozhevsky.com/free_docs/TEST_SUITE.zip Files were created using: for i in tc*.ber; do echo "$ fq -d asn1_ber v $i" > $i.fqtest ; done rename 's/transformed_//' transformed_tc*

laymans_guide_examples.json extracted from https://luca.ntop.org/Teaching/Appunti/asn1.html

From https://lapo.it/asn1js/ released under ISC license: sig-p256-der.p7m sig-p256-ber.p7m sig-rsa1024-sha1.p7s letsencrypt-x3.cer ed25519.cer