aescmac

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Msb = 0b10000000
)

Variables

View Source
var (
	ErrUnsupportedKeySize = errors.New("key size is not supported")
	ErrAlreadyFinished    = errors.New("the processing has been finalized, reset call is needed")
)
View Source
var ErrXorLengthMismatch = errors.New("xor arguments must have the same length")

Functions

func NewCMAC

func NewCMAC(key []byte) (hash.Hash, error)

func Padding

func Padding(data []byte) []byte

func ShiftLeft

func ShiftLeft(data []byte) []byte

func Sum

func Sum(key, data []byte) ([]byte, error)

func Xor

func Xor(a, b []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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