# README

Important Notice

This is a fork of the encoding/asn1 Go package. The original source can be found on GitHub.

Be careful about making local modifications to this code as it will make maintenance harder in future.

# Functions

Marshal returns the ASN.1 encoding of val.
MarshalWithParams allows field parameters to be specified for the top-level element.
Unmarshal parses the DER-encoded ASN.1 data structure b and uses the reflect package to fill in an arbitrary value pointed at by val.
UnmarshalWithParams allows field parameters to be specified for the top-level element.

# Constants

ASN.1 class types represent the namespace of the tag.
ASN.1 class types represent the namespace of the tag.
ASN.1 class types represent the namespace of the tag.
ASN.1 class types represent the namespace of the tag.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.
ASN.1 tags represent the type of the following object.

# Variables

NullBytes contains bytes representing the DER-encoded ASN.1 NULL type.
NullRawValue is a RawValue with its Tag set to the ASN.1 NULL type tag (5).

# Structs

BitString is the structure to use when you want an ASN.1 BIT STRING type.
A RawValue represents an undecoded ASN.1 object.
A StructuralError suggests that the ASN.1 data is valid, but the Go type which is receiving it doesn't match.
A SyntaxError suggests that the ASN.1 data is invalid.

# Type aliases

An Enumerated is represented as a plain int.
A Flag accepts any data and is set to true if present.
An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER.
RawContent is used to signal that the undecoded, DER data needs to be preserved for a struct.