aesmac

package
v0.0.0-...-d22c1cf Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKey

func CheckKey(k key.Key) error

CheckKey checks whether the given key is a valid AES-CBC-MAC key.

Reference https://datatracker.ietf.org/doc/html/rfc9053#name-hash-based-message-authenti

func GenerateKey

func GenerateKey(alg key.Alg) (key.Key, error)

GenerateKey generates a new key with given algorithm for AES-CBC-MAC.

func NewAESMAC

func NewAESMAC(k key.Key) (key.MACer, error)

NewAESMAC creates a key.MACer for the given AES-CBC-MAC key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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