[][src]Module der_parser::ber

Basic Encoding Rules (BER) objects and parser

Structs

BerClassFromIntError
BerObject

Representation of a DER-encoded (X.690) object

BerObjectHeader
BerObjectIntoIterator
BerObjectRefIterator
BerTag

Defined in X.680 section 8.4 X.690 doesn't specify the maxmimum tag size so we're assuming that people aren't going to need anything more than a u32.

BitStringObject

BitString wrapper

PrettyBer

Enums

BerClass

BER Object class of tag

BerObjectContent
PrettyPrinterFlag

Constants

MAX_RECURSION

Default maximum recursion limit

Functions

ber_encode_header

Encode header as object

ber_encode_object

Encode object as BER

ber_encode_object_raw

Encode header and object content as BER, without any validation

ber_encode_tagged_explicit

Encode the provided object in an EXPLICIT tagged value, using the provided tag ans class

ber_encode_tagged_implicit

Encode the provided object in an IMPLICIT tagged value, using the provided tag and class

ber_read_element_content_as

Parse the next bytes as the content of a BER object.

ber_read_element_header

Read an object header

parse_ber

Parse BER object recursively

parse_ber_bitstring

Read an bitstring value

parse_ber_bmpstring

Read a BmpString value

parse_ber_bool

Read a boolean value

parse_ber_endofcontent

Read end of content marker

parse_ber_enum

Read an enumerated value

parse_ber_explicit
parse_ber_explicit_failed
parse_ber_generalizedtime

Read a Generalized time value

parse_ber_generalstring

Read a GeneralString value

parse_ber_ia5string

Read an IA5 string value. The content is verified to be ASCII.

parse_ber_implicit

call der content parsing function

parse_ber_integer

Read an integer value

parse_ber_null

Read a null value

parse_ber_numericstring

Read a numeric string value. The content is verified to contain only digits and spaces.

parse_ber_octetstring

Read an octetstring value

parse_ber_oid

Read an object identifier value

parse_ber_printablestring

Read a printable string value. The content is verified to contain only the allowed characters.

parse_ber_recursive

Parse BER object recursively, specifying the maximum recursion depth

parse_ber_relative_oid

Read a relative object identifier value

parse_ber_sequence

Parse a sequence of BER elements

parse_ber_set

Parse a set of BER elements

parse_ber_t61string

Read a T61 string value

parse_ber_u32

Parse BER object and try to decode it as a 32-bits unsigned integer

parse_ber_u64

Parse BER object and try to decode it as a 64-bits unsigned integer

parse_ber_utctime

Read an UTC time value

parse_ber_utf8string

Read a UTF-8 string value. The encoding is checked.

parse_ber_with_tag

Parse a BER object, expecting a value with specified tag

xor_option

Replacement function for Option.xor (>= 1.37)