asn1

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

*

*

*

*

*

*

*

*

*

*

Index

Constants

View Source
const (
	SHORT_FORM      = 0
	LONG_FORM       = 1
	INDEFINITE_FORM = 2
)
View Source
const (
	END_OF_CONTENS_TAG    = 0x00 //  end-of-contents
	BOOLEAN_TAG           = 0x01 // primitive
	INTEGER_TAG           = 0x02 // primitive
	BIT_STRING_TAG        = 0x03 // either primitive or constructed
	OCTET_STRING_TAG      = 0x04 // primitive
	NULL_TAG              = 0x05 // primitive
	OBJECT_IDENTIFIER_TAG = 0x06 // primitive
	REAL_TAG              = 0x09 // primitive
	UTF8String_TAG        = 0x0C // either primitive or constructed
	SEQUENCE_TAG          = 0x10 // constructed
	SET_TAG               = 0x11 // constructed
)
View Source
const IEEE_754_BIAS = 0x3FF
View Source
const IEEE_754_EMAX = 0x3FF
View Source
const IEEE_754_EMIN = 1 - 0x3FF
View Source
const IEEE_754_T = 52
View Source
const IEEE_754_W = 11
View Source
const (
	MAX_STRING_LENGTH = 1000
)
View Source
const MINUS_INFINITY = 0x41
View Source
const PLUS_INFINITY = 0x40

Variables

This section is empty.

Functions

func Decode

func Decode(evalue interface{}, bbuffer *bytes.Buffer) (err error)

func DecodeError

func DecodeError(desc string) error

func Encode

func Encode(bbuffer *bytes.Buffer, value interface{}) (err error)

Encode value

func EncodeError

func EncodeError(desc string) error

func LengthError

func LengthError(desc string) error

func NotImplemented

func NotImplemented(desc string) error

func NotSupported

func NotSupported(desc string) error

Types

type ASN1Type

type ASN1Type uint

type IsConstructed

type IsConstructed bool

type LENGTH_FORM

type LENGTH_FORM int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL