Documentation ¶
Index ¶
- func ComputeRawMAC1(key, data []byte) ([]byte, error)
- func ComputeRawMAC3(key1, key2, data []byte) ([]byte, error)
- func Pad00(data []byte, blockSize int) []byte
- func Pad80(data []byte, blockSize int) []byte
- func PadBytesMethod1(data []byte, blockSize int) []byte
- func PadBytesMethod2(data []byte, blockSize int) []byte
- func UnpadBytesMethod2(data []byte) ([]byte, error)
- type InitialTransformation
- type OutputTransformation
- type Padding
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeRawMAC1 ¶
func ComputeRawMAC3 ¶
func PadBytesMethod1 ¶
PadBytesMethod1 adds bits with value 0 to the end of the data until the padded data is a multiple of n. If the original data was already a multiple of n, no bits are added.
func PadBytesMethod2 ¶
PadBytesMethod2 pads the data with byte 0x80 and then 0x00s until the data is an exact multiple of the block size. When the data size is already a multiple of the block size, nothing will be added
func UnpadBytesMethod2 ¶
Types ¶
type InitialTransformation ¶
type OutputTransformation ¶
Click to show internal directories.
Click to hide internal directories.