mac

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AesBlockSize = 16
)

Variables

This section is empty.

Functions

func AesCmac128

func AesCmac128(key []byte, inData []byte) []byte

compute AES 128 CMAC using key and message M (in_data)

func GenerateMacX919

func GenerateMacX919(inMacData []byte, keyData []byte) ([]byte, error)

GenerateMacX919 generate a X9.19 MAC (ISO9797 - Algorithm 3) with a double length key (ede2) data will be zero padded if required

func GenerateMacX99

func GenerateMacX99(inMacData []byte, keyData []byte) ([]byte, error)

GenerateMacX99 generates a X9.9 MAC using a single length key data will be zero padded if required

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL