Documentation
¶
Overview ¶
Package tlv implements various version (ASN.1 BER, Simple, Compact) TLV encoding using in ISO 7816-4.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidTag = errors.New("invalid tag") ErrTagToBig = errors.New("tag is too big for this encoding") ErrValueToLarge = errors.New("valye to large for this encoding") )
View Source
var ErrNotConstructed = errors.New("tag is not constructed but contains children")
Functions ¶
func EncodeCompact ¶
func EncodeSimple ¶
Types ¶
type Tag ¶
type Tag uint // In theory ISO 7816-4 also supports 3-byte tags
func (Tag) IsConstructed ¶
Click to show internal directories.
Click to hide internal directories.