Registry / crypto / aead-cmac

aead-cmac

JSON →
library0.0.0-20160719120800-7af84192f0b1gogounverified

Implements the fast CMAC message authentication code based on a block cipher, as specified in RFC 4493 and RFC 4494.

go get github.com/aead/cmac
INSTALL
IMPORT
SIG · AEAD-CMAC
A
aead-cmac
cryptogov0.0.0-20160719120800-7af84192f0b1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cmac
github.com/aead/cmac

Compute CMAC of a message using AES.

package main import ( "crypto/aes" "fmt" "github.com/aead/cmac" ) func main() { cipher, _ := aes.NewCipher([]byte("0123456789abcdef")) mac, _ := cmac.Sum(cipher, []byte("message"), 16) fmt.Printf("%x\n", mac) }
Debug
Known issues
gotchaThe package is unmaintained and may have security issues.
fix
Consider using crypto/hmac or a maintained alternative.
affects: >=0.0.0
Upgrade
Version history
0.0.0-20160719120800-7af84192f0b1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Resources
aead-cmac — go get aead-cmac · libregistry