⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module asn1

Module asn1 

Source
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 AsnValue tree.
AsnEncoder
Encodes an AsnValue tree into BER-encoded bytes.

Enums§

AsnValue
ASN.1 value
Tag
ASN.1 tag identifiers
TagClass
ASN.1 tag class

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).