Crates.io | ring-der |
lib.rs | ring-der |
version | 0.16.19-1 |
source | src |
created_at | 2021-07-08 22:17:35.782901 |
updated_at | 2021-07-09 18:59:57.015335 |
description | An extended version of the ASN.1 DER parser of *ring* |
homepage | |
repository | https://github.com/ymjing/ring-der |
max_upload_size | |
id | 420501 |
size | 16,229 |
This crate providers an extended version of the DER parser in ring::io::der.
What's extended:
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));
See LICENSE.