asn1

Constants & Variables

BIT_STRING const #

The following is a list of standard tag and class combinations.

const BIT_STRING = *ast.CallExpr

BOOLEAN const #

The following is a list of standard tag and class combinations.

const BOOLEAN = *ast.CallExpr

ENUM const #

The following is a list of standard tag and class combinations.

const ENUM = *ast.CallExpr

GeneralString const #

The following is a list of standard tag and class combinations.

const GeneralString = *ast.CallExpr

GeneralizedTime const #

The following is a list of standard tag and class combinations.

const GeneralizedTime = *ast.CallExpr

IA5String const #

The following is a list of standard tag and class combinations.

const IA5String = *ast.CallExpr

INTEGER const #

The following is a list of standard tag and class combinations.

const INTEGER = *ast.CallExpr

NULL const #

The following is a list of standard tag and class combinations.

const NULL = *ast.CallExpr

OBJECT_IDENTIFIER const #

The following is a list of standard tag and class combinations.

const OBJECT_IDENTIFIER = *ast.CallExpr

OCTET_STRING const #

The following is a list of standard tag and class combinations.

const OCTET_STRING = *ast.CallExpr

PrintableString const #

The following is a list of standard tag and class combinations.

const PrintableString = *ast.CallExpr

SEQUENCE const #

The following is a list of standard tag and class combinations.

const SEQUENCE = *ast.CallExpr

SET const #

The following is a list of standard tag and class combinations.

const SET = *ast.CallExpr

T61String const #

The following is a list of standard tag and class combinations.

const T61String = *ast.CallExpr

UTCTime const #

The following is a list of standard tag and class combinations.

const UTCTime = *ast.CallExpr

UTF8String const #

The following is a list of standard tag and class combinations.

const UTF8String = *ast.CallExpr

classConstructed const #

const classConstructed = 0x20

classContextSpecific const #

const classContextSpecific = 0x80

Type Aliases

Tag type #

Tag represents an ASN.1 identifier octet, consisting of a tag number (indicating a type) and class (such as context-specific or constructed). Methods in the cryptobyte package only support the low-tag-number form, i.e. a single identifier octet with bits 7-8 encoding the class and bits 1-6 encoding the tag number.

type Tag uint8

Functions

Constructed method #

Constructed returns t with the constructed class bit set.

func (t Tag) Constructed() Tag

ContextSpecific method #

ContextSpecific returns t with the context-specific class bit set.

func (t Tag) ContextSpecific() Tag

Generated with Arrow