#asn1 #encoding #der

basn1

Binary ASN.1 encoding and decoding no-std library (DER)

4 releases

0.1.3 Sep 15, 2020
0.1.2 May 11, 2020
0.1.1 May 5, 2020
0.1.0 May 2, 2020

#493 in Encoding

Download history 18/week @ 2021-08-15 27/week @ 2021-08-22 41/week @ 2021-08-29 63/week @ 2021-09-05 45/week @ 2021-09-12 49/week @ 2021-09-19 58/week @ 2021-09-26 78/week @ 2021-10-03 57/week @ 2021-10-10 73/week @ 2021-10-17 40/week @ 2021-10-24 84/week @ 2021-10-31 164/week @ 2021-11-07 129/week @ 2021-11-14 135/week @ 2021-11-21 119/week @ 2021-11-28

547 downloads per month

MIT/Apache

43KB
1K SLoC

BASN1 -- Binary ASN.1 encoder & decoder

A binary ASN.1 encode and decoder in rust, working with no_std


lib.rs:

ASN.1 binary encoder and decoder (DER, possibly BER/CER in future)

The general principle of this crate is to avoid transforming information or re-allocating information. this should be compatible with no_std.

In decoding, the user remain in control of the data allocation and instead the parser give typed view into this data allocation with the data verified for correctness.

For example, when reading an integer from the stream, a typed slice IntegerSlice of the stream is given back that the parser guaranteed to be correct, and that the user can keep as is.

No runtime deps

Na_