#asn1 #crypto #itu #pkcs

no-std der

Pure Rust embedded-friendly implementation of the Distinguished Encoding Rules (DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690 with full support for heapless no_std targets

3 unstable releases

new 0.2.9 Feb 24, 2021
0.2.8 Feb 22, 2021
0.2.0 Jan 22, 2021
0.1.0 Dec 22, 2020
0.0.0 Dec 17, 2020

#363 in Cryptography

Download history 11/week @ 2020-12-12 1108/week @ 2020-12-19 721/week @ 2020-12-26 1467/week @ 2021-01-02 2261/week @ 2021-01-09 1882/week @ 2021-01-16 4170/week @ 2021-01-23 14551/week @ 2021-01-30 17919/week @ 2021-02-06 26202/week @ 2021-02-13 19404/week @ 2021-02-20

28,431 downloads per month
Used in 14 crates (3 directly)

Apache-2.0 OR MIT

145KB
3K SLoC

RustCrypto: ASN.1 DER

crate Docs Apache2/MIT licensed Rust Version Project Chat Build Status

Pure Rust embedded-friendly implementation of the Distinguished Encoding Rules (DER) for Abstract Syntax Notation One (ASN.1) as described in ITU X.690.

Documentation

About

This crate provides a no_std-friendly implementation of a subset of ASN.1 DER necessary for decoding/encoding various cryptography-related formats implemented as part of the RustCrypto project, e.g. the pkcs8 crate.

The core implementation avoids any heap usage (with convenience methods that allocate gated under the off-by-default alloc feature).

The implementation is presently specialized for documents which are smaller than 64kB, as that provides a safe bound for the current use cases. However, that may be revisited in the future depending on interest in support for larger documents. Please open a GitHub Issue if you find this limit constraining in practice.

License

Licensed under either of:

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~170KB