├── .github └── workflows │ └── main.yml ├── .gitignore ├── .ocamlformat ├── CHANGES.md ├── LICENSE.md ├── README.md ├── doc └── api.odocl ├── dune-project ├── key-parsers.opam ├── lib ├── asn1.ml ├── asn1.mli ├── cvc.ml ├── cvc.mli ├── derivable.ml ├── derivable.mli ├── dune ├── ltpa.ml ├── ltpa.mli ├── pgp.ml └── pgp.mli └── tests ├── dune ├── keys ├── bad_file.pgp ├── bad_file_header.pgp ├── bad_pub_algo.pgp ├── dh_param.der ├── dh_private.der ├── dh_public.der ├── dsa_pkcs8.der ├── dsa_private.pgp ├── dsa_private_key.der ├── dsa_public.pgp ├── dsa_x509.der ├── ecdsa_cvc_dummy.key ├── elgamal_public.pgp ├── negative_rsa.der ├── p256v1_explicit_param.der ├── p256v1_named_param.der ├── p256v1_pkcs8.der ├── p256v1_x509.der ├── revocation_signature.pgp ├── rsa_cvc_dummy.key ├── rsa_pkcs1.der ├── rsa_pkcs1_pub.der ├── rsa_pkcs8.der ├── rsa_private.pgp ├── rsa_public.pgp ├── rsa_tag0.pgp ├── rsa_x509.der ├── rsa_x509_no_params.der ├── sect113r1_explicit_param.der └── test_marker.pgp ├── test_all.ml ├── test_asn1.ml ├── test_cvc.ml ├── test_helpers.ml ├── test_helpers.mli ├── test_ltpa.ml ├── test_pgp.ml └── test_util.ml /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/.gitignore -------------------------------------------------------------------------------- /.ocamlformat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/.ocamlformat -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/CHANGES.md -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/README.md -------------------------------------------------------------------------------- /doc/api.odocl: -------------------------------------------------------------------------------- 1 | Key_parsers 2 | -------------------------------------------------------------------------------- /dune-project: -------------------------------------------------------------------------------- 1 | (lang dune 2.0) 2 | (name key-parsers) 3 | -------------------------------------------------------------------------------- /key-parsers.opam: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/key-parsers.opam -------------------------------------------------------------------------------- /lib/asn1.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/asn1.ml -------------------------------------------------------------------------------- /lib/asn1.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/asn1.mli -------------------------------------------------------------------------------- /lib/cvc.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/cvc.ml -------------------------------------------------------------------------------- /lib/cvc.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/cvc.mli -------------------------------------------------------------------------------- /lib/derivable.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/derivable.ml -------------------------------------------------------------------------------- /lib/derivable.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/derivable.mli -------------------------------------------------------------------------------- /lib/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/dune -------------------------------------------------------------------------------- /lib/ltpa.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/ltpa.ml -------------------------------------------------------------------------------- /lib/ltpa.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/ltpa.mli -------------------------------------------------------------------------------- /lib/pgp.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/pgp.ml -------------------------------------------------------------------------------- /lib/pgp.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/lib/pgp.mli -------------------------------------------------------------------------------- /tests/dune: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/dune -------------------------------------------------------------------------------- /tests/keys/bad_file.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/bad_file.pgp -------------------------------------------------------------------------------- /tests/keys/bad_file_header.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/bad_file_header.pgp -------------------------------------------------------------------------------- /tests/keys/bad_pub_algo.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/bad_pub_algo.pgp -------------------------------------------------------------------------------- /tests/keys/dh_param.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dh_param.der -------------------------------------------------------------------------------- /tests/keys/dh_private.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dh_private.der -------------------------------------------------------------------------------- /tests/keys/dh_public.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dh_public.der -------------------------------------------------------------------------------- /tests/keys/dsa_pkcs8.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dsa_pkcs8.der -------------------------------------------------------------------------------- /tests/keys/dsa_private.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dsa_private.pgp -------------------------------------------------------------------------------- /tests/keys/dsa_private_key.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dsa_private_key.der -------------------------------------------------------------------------------- /tests/keys/dsa_public.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dsa_public.pgp -------------------------------------------------------------------------------- /tests/keys/dsa_x509.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/dsa_x509.der -------------------------------------------------------------------------------- /tests/keys/ecdsa_cvc_dummy.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/ecdsa_cvc_dummy.key -------------------------------------------------------------------------------- /tests/keys/elgamal_public.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/elgamal_public.pgp -------------------------------------------------------------------------------- /tests/keys/negative_rsa.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/negative_rsa.der -------------------------------------------------------------------------------- /tests/keys/p256v1_explicit_param.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/p256v1_explicit_param.der -------------------------------------------------------------------------------- /tests/keys/p256v1_named_param.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/p256v1_named_param.der -------------------------------------------------------------------------------- /tests/keys/p256v1_pkcs8.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/p256v1_pkcs8.der -------------------------------------------------------------------------------- /tests/keys/p256v1_x509.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/p256v1_x509.der -------------------------------------------------------------------------------- /tests/keys/revocation_signature.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/revocation_signature.pgp -------------------------------------------------------------------------------- /tests/keys/rsa_cvc_dummy.key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_cvc_dummy.key -------------------------------------------------------------------------------- /tests/keys/rsa_pkcs1.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_pkcs1.der -------------------------------------------------------------------------------- /tests/keys/rsa_pkcs1_pub.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_pkcs1_pub.der -------------------------------------------------------------------------------- /tests/keys/rsa_pkcs8.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_pkcs8.der -------------------------------------------------------------------------------- /tests/keys/rsa_private.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_private.pgp -------------------------------------------------------------------------------- /tests/keys/rsa_public.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_public.pgp -------------------------------------------------------------------------------- /tests/keys/rsa_tag0.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_tag0.pgp -------------------------------------------------------------------------------- /tests/keys/rsa_x509.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_x509.der -------------------------------------------------------------------------------- /tests/keys/rsa_x509_no_params.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/rsa_x509_no_params.der -------------------------------------------------------------------------------- /tests/keys/sect113r1_explicit_param.der: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/sect113r1_explicit_param.der -------------------------------------------------------------------------------- /tests/keys/test_marker.pgp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/keys/test_marker.pgp -------------------------------------------------------------------------------- /tests/test_all.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_all.ml -------------------------------------------------------------------------------- /tests/test_asn1.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_asn1.ml -------------------------------------------------------------------------------- /tests/test_cvc.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_cvc.ml -------------------------------------------------------------------------------- /tests/test_helpers.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_helpers.ml -------------------------------------------------------------------------------- /tests/test_helpers.mli: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_helpers.mli -------------------------------------------------------------------------------- /tests/test_ltpa.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_ltpa.ml -------------------------------------------------------------------------------- /tests/test_pgp.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_pgp.ml -------------------------------------------------------------------------------- /tests/test_util.ml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cryptosense/key-parsers/HEAD/tests/test_util.ml --------------------------------------------------------------------------------