ring-der

Crates.ioring-der
lib.rsring-der
version0.16.19-1
sourcesrc
created_at2021-07-08 22:17:35.782901
updated_at2021-07-09 18:59:57.015335
descriptionAn extended version of the ASN.1 DER parser of *ring*
homepage
repositoryhttps://github.com/ymjing/ring-der
max_upload_size
id420501
size16,229
Yiming Jing (ymjing)

documentation

README

ring-der

This crate providers an extended version of the DER parser in ring::io::der.

What's extended:

  • All tag types as defined in X.680 section 8.4;
  • High tag number, for tag numbers 31 and greater;
  • Error handling with thiserror.

Example

use ring_der::der::parse_boolean;
use ring_der::Error;

let input = untrusted::Input::from(&[0x01, 0x01, 0xff]);
let result = input.read_all(Error::IncompleteRead, |r| parse_boolean(r));
assert_eq!(result, Ok(true));

License

See LICENSE.

Commit count: 1

cargo fmt