Crates.io | simple_asn1 |
lib.rs | simple_asn1 |
version | 0.6.2 |
source | src |
created_at | 2017-12-27 02:17:02.072468 |
updated_at | 2022-06-03 15:27:09.7092 |
description | A simple DER/ASN.1 encoding/decoding library. |
homepage | |
repository | https://github.com/acw/simple_asn1 |
max_upload_size | |
id | 44519 |
size | 61,259 |
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!