der-parser 5.0.0-beta1

Parser/encoder for ASN.1 BER/DER data
Documentation
//! Distinguished Encoding Rules (DER) objects and parser
//!
//! All functions in this crate use BER parsing functions (see the `ber` module)
//! internally, adding constraints verification where needed.
//!
//! The objects `BerObject` and `DerObject` are the same (type alias): all BER functions,
//! combinators and macros can be used, and provide additional tools for DER parsing.

use crate::ber::{BerObject, BerTag};

mod parser;
pub use crate::der::parser::*;

/// DER tag (same as BER tag)
pub type DerTag = BerTag;

/// Representation of a DER-encoded (X.690) object
///
/// Note that a DER object is just a BER object, with additional constraints.
pub type DerObject<'a> = BerObject<'a>;