asn1

package
v0.0.0-...-3233107 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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
	NULL_TAG              = 0x05 // primitive
	OBJECT_IDENTIFIER_TAG = 0x06 // primitive
	REAL_TAG              = 0x09 // primitive
	UTF8_STRING_TAG       = 0x0C // TODO
	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 MINUS_INFINITY = 0x41
View Source
const PLUS_INFINITY = 0x40

Variables

This section is empty.

Functions

func Decode

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

func DecodeError

func DecodeError(desc string) error

func Encode

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

Encode value

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 Asn1Error

type Asn1Error error

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