A simple ASN.1 DER encoding/decoding library for Rust
Find a file
2026-02-12 09:07:16 -08:00
.github/workflows Add some CI. 2025-01-12 13:43:06 -08:00
fuzz Add cargo-fuzz target 2019-03-29 18:44:09 +01:00
src Fix a typo, make the repo slippy-clean, and bump the revision. (#39) 2026-02-12 09:07:16 -08:00
test Initial parser. 2017-11-06 14:47:27 -08:00
.gitignore Initial parser. 2017-11-06 14:47:27 -08:00
.travis.yml Travis support? 2017-12-26 18:07:22 -08:00
Cargo.toml Fix a typo, make the repo slippy-clean, and bump the revision. (#39) 2026-02-12 09:07:16 -08:00
LICENSE Add README and LICENSE 2017-11-14 15:51:18 -08:00
README.md Add README and LICENSE 2017-11-14 15:51:18 -08:00

Overview

This is a simple library for parsing DER-encoded data.

In particular, this library automates the process of understanding the DER encoded objects in an ASN.1 data stream. These tokens can then be parsed by your library, based on the ASN.1 description in your format.

For convenience, we create the traits ToASN1 and FromASN to abstract the ability to decode a type from an ASN.1 token stream. If your type implements one of these traits, your program or library can then use the convenience functions der_encode and der_decode to do all the parsing work in one action.

Patches welcome!