Skip to content

An extended version of the ASN.1 DER parser of *ring*

License

Notifications You must be signed in to change notification settings

ymjing/ring-der

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An extended version of the ASN.1 DER parser of *ring*

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages