Module der_parser::ber
source · Expand description
Basic Encoding Rules (BER) objects and parser
Structs
- Representation of a DER-encoded (X.690) object
- BER/DER Tag as defined in X.680 section 8.4
- BitString wrapper
Enums
- BER Object class of tag
Constants
- Default maximum recursion limit
Functions
- ber_encode_header
serialize
Encode header as object - ber_encode_object
serialize
Encode object as BER - ber_encode_object_raw
serialize
Encode header and object content as BER, without any validation - ber_encode_tagged_explicit
serialize
Encode the provided object in an EXPLICIT tagged value, using the provided tag ans class - ber_encode_tagged_implicit
serialize
Encode the provided object in an IMPLICIT tagged value, using the provided tag and class - Parse the next bytes as the content of a BER object.
- Read an object header
- Parse BER object recursively
- Read an bitstring value
- Read a BmpString value
- Read a boolean value
- Parse a BER object and apply provided function to content
- Parse the next bytes as the content of a BER object (combinator)
- Read end of content marker
- Read an enumerated value
- parse_ber_explicitDeprecatedParse an optional tagged object, applying function to get content
- Parse an optional tagged object, applying function to get content
- Read a Generalized time value
- Read a GeneralString value
- Read an IA5 string value. The content is verified to be ASCII.
- call der content parsing function
- Read an integer value
- Read a null value
- Read a numeric string value. The content is verified to contain only digits and spaces.
- Read an octetstring value
- Read an object identifier value
- Read a printable string value. The content is verified to contain only the allowed characters.
- Parse BER object recursively, specifying the maximum recursion depth
- Read a relative object identifier value
- Parse a sequence of BER elements
- Parse a defined sequence of DER elements (function version)
- Parse a defined SEQUENCE object (returning a generic object)
- Parse a SEQUENCE OF object
- Parse a SEQUENCE OF object (returning a vec)
- Parse a set of BER elements
- Parse a defined set of DER elements (function version)
- Parse a defined SET object (returning a generic object)
- Parse a SET OF object
- Parse a SET OF object (returning a vec)
- Read a T61 string value
- Read a TAGGED EXPLICIT value (function version)
- Read a TAGGED IMPLICIT value (function version)
- Parse BER object and try to decode it as a 32-bits unsigned integer
- Parse BER object and try to decode it as a 64-bits unsigned integer
- Read an UTC time value
- Read a UTF-8 string value. The encoding is checked.
- Parse a BER object, expecting a value with specified tag