Documentation ¶
Index ¶
- Variables
- type ANY
- type ASNClass
- type ASNTag
- type ASNValue
- type BitString
- type Bool
- type FloatingPoint
- type GeneralString
- type GeneralizedTime
- type GraphicString
- type IA5String
- type Integer
- type Null
- type ObjectDescriptor
- type ObjectIdentifier
- type OctetString
- type Oid
- type ParseError
- type PrintableString
- type RawValue
- type Real
- type SyntaxError
- type T61String
- type UTCTime
- type UTF8String
- type VisibleString
Constants ¶
This section is empty.
Variables ¶
var ( BoolTrue = Bool{true} BoolFalse = Bool{false} )
var ErrUnparsedObjects = errors.New("Unparsed objects")
Functions ¶
This section is empty.
Types ¶
type ASNValue ¶
type ASNValue uint
var ( TagEoc ASNValue = 0x00 TagBoolean ASNValue = 0x01 TagInteger ASNValue = 0x02 TagBitString ASNValue = 0x03 TagOctetString ASNValue = 0x04 TagNull ASNValue = 0x05 TagOid ASNValue = 0x06 TagObjectDescriptor ASNValue = 0x07 TagExternal ASNValue = 0x08 TagSequence ASNValue = 0x10 TagSet ASNValue = 0x11 TagPrintableString ASNValue = 0x13 TagT61String ASNValue = 0x14 TagIA5String ASNValue = 0x16 TagVisibleString ASNValue = 26 TagUTCTime ASNValue = 0x17 )
ASN.1 universal tag numbers.
type BitString ¶
BitString is the structure to use when you want an ASN.1 BIT STRING type. A bit string is padded up to the nearest byte in memory and the number of valid bits is recorded. Padding bits will be zero.
func (BitString) At ¶
At returns the bit at the given index. If the index is out of range it returns 0.
func (BitString) RightAlign ¶
RightAlign returns a slice where the padding bits are at the beginning. The slice may share memory with the BitString.
func (*BitString) UnmarshalRawValue ¶
type Bool ¶
type Bool struct {
// contains filtered or unexported fields
}
func (*Bool) UnmarshalRawValue ¶
type FloatingPoint ¶
type FloatingPoint struct {
// contains filtered or unexported fields
}
func (*FloatingPoint) UnmarshalRawValue ¶
func (s *FloatingPoint) UnmarshalRawValue(rv *RawValue) error
type GeneralString ¶
type GeneralString struct {
// contains filtered or unexported fields
}
func (*GeneralString) UnmarshalRawValue ¶
func (s *GeneralString) UnmarshalRawValue(rv *RawValue) error
type GeneralizedTime ¶
type GeneralizedTime struct {
// contains filtered or unexported fields
}
func (*GeneralizedTime) UnmarshalRawValue ¶
func (s *GeneralizedTime) UnmarshalRawValue(rv *RawValue) error
type GraphicString ¶
type GraphicString struct {
// contains filtered or unexported fields
}
func (*GraphicString) UnmarshalRawValue ¶
func (s *GraphicString) UnmarshalRawValue(rv *RawValue) error
type IA5String ¶
type IA5String struct {
// contains filtered or unexported fields
}
func (*IA5String) UnmarshalRawValue ¶
type Integer ¶
type Integer struct {
// contains filtered or unexported fields
}
func (*Integer) UnmarshalRawValue ¶
type Null ¶
type Null struct{}
Null is used to encode and decode ASN.1 NULLs.
func (*Null) UnmarshalRawValue ¶
type ObjectDescriptor ¶
type ObjectDescriptor struct {
// contains filtered or unexported fields
}
func (*ObjectDescriptor) UnmarshalRawValue ¶
func (s *ObjectDescriptor) UnmarshalRawValue(rv *RawValue) error
type ObjectIdentifier ¶
type ObjectIdentifier struct {
// contains filtered or unexported fields
}
func (*ObjectIdentifier) UnmarshalRawValue ¶
func (s *ObjectIdentifier) UnmarshalRawValue(rv *RawValue) error
type OctetString ¶
type OctetString struct {
// contains filtered or unexported fields
}
func (*OctetString) String ¶
func (s *OctetString) String() string
func (*OctetString) UnmarshalRawValue ¶
func (s *OctetString) UnmarshalRawValue(rv *RawValue) error
type Oid ¶
type Oid []uint
Oid is used to encode and decode ASN.1 OBJECT IDENTIFIERs.
type ParseError ¶
type ParseError struct {
Msg string
}
ParseError is returned by the package to indicate that the given data is invalid.
func (*ParseError) Error ¶
func (e *ParseError) Error() string
Error returns the error message of a ParseError.
type PrintableString ¶
type PrintableString struct {
// contains filtered or unexported fields
}
func (*PrintableString) UnmarshalRawValue ¶
func (s *PrintableString) UnmarshalRawValue(rv *RawValue) error
type Real ¶
type Real struct {
// contains filtered or unexported fields
}
func (*Real) UnmarshalRawValue ¶
type SyntaxError ¶
type SyntaxError struct {
Msg string
}
SyntaxError is returned by the package to indicate that the given value or struct is invalid.
func (*SyntaxError) Error ¶
func (e *SyntaxError) Error() string
Error returns the error message of a SyntaxError.
type T61String ¶
type T61String struct {
// contains filtered or unexported fields
}
func (*T61String) UnmarshalRawValue ¶
type UTCTime ¶
type UTCTime struct {
// contains filtered or unexported fields
}
func (*UTCTime) UnmarshalRawValue ¶
type UTF8String ¶
type UTF8String struct {
// contains filtered or unexported fields
}
func (*UTF8String) UnmarshalRawValue ¶
func (s *UTF8String) UnmarshalRawValue(rv *RawValue) error
type VisibleString ¶
type VisibleString struct {
// contains filtered or unexported fields
}
func (*VisibleString) String ¶
func (s *VisibleString) String() string
func (*VisibleString) UnmarshalRawValue ¶
func (s *VisibleString) UnmarshalRawValue(rv *RawValue) error