Asn1Parser

Read-only DER parser for ASN.1 structures.

This parser supports:

  • All four tag classes (UNIVERSAL, APPLICATION, CONTEXT_SPECIFIC, PRIVATE)

  • Constructed and primitive types

  • Multi-byte tag numbers (tag number ≥ 31)

  • Multi-byte definite lengths (up to 4 length-of-length bytes)

It does not support:

  • BER indefinite-length encoding

  • SET OF canonical ordering

Functions

Link copied to clipboard

Parse a single ASN.1 DER element from the beginning of data.

Link copied to clipboard

Parse all consecutive ASN.1 DER elements in data.