Expand description
ASN.1/BER Encoding Library
Provides ASN.1 Basic Encoding Rules (BER) serialization and deserialization for use by LDAP, Kerberos, and other protocols that depend on ASN.1 structured data.
§Features
- Tag encoding/decoding with all four tag classes
- Definite-length BER encoding (short and long forms)
- Primitive types: Boolean, Integer, BigInteger, BitString, OctetString, Null, OID, UTF8String, Enumerated
- Constructed types: Sequence, Set
- Context-specific tagged values
- Builder API for constructing ASN.1 structures fluently
- Full OID encoding/decoding with base-128 variable-length encoding
Structs§
- AsnBuilder
- Fluent builder for constructing ASN.1 values.
- AsnDecoder
- Decodes BER-encoded bytes into an
AsnValuetree. - AsnEncoder
- Encodes an
AsnValuetree into BER-encoded bytes.
Enums§
Functions§
- decode_
length - Decode a BER definite-length value.
- decode_
tag - Decode a tag from the data stream.
- encode_
application - Encode an application-tagged wrapper.
- encode_
context_ specific - Encode a context-specific tagged wrapper.
- encode_
length - Encode a BER definite-length value.
- encode_
tag - Encode a tag byte (or bytes for high-tag-number form).