Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PadderFunc ¶
PadderFunc is function which is Padder.
type Padding ¶
Padding is something, which gets messsage and makes it constant length. It's also able to reverse it.
func IEC78164Padding ¶
func IEC78164Padding() Padding
IEC78164Padding is single padding scheme, which has simple format: [any, any, any..., 0x80, 0x00, 0x00, 0x00...].
type Unpadder ¶
type Unpadder interface { // Unpad returns value < 0 if it failed Unpad(data []byte) (msgSize int) }
Unpadder is something able to remove padding.
type UnpadderFunc ¶
UnpadderFunc if cuntion which is Unpadder.
func (UnpadderFunc) Unpad ¶
func (f UnpadderFunc) Unpad(data []byte) (msgSize int)
Unpad makes UnpadderFunc satisfy Unpadder.
Click to show internal directories.
Click to hide internal directories.