Discover Packages
github.com/deatil/go-cryptobin
hash
cmac
package
Version:
v1.0.2053
Opens a new window with list of versions in this module.
Published: Mar 8, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation Source Files Directories Index Constants Variables Functions Types New(c) NewWithTagSize(c, tagsize) Sum(msg, c, tagsize) Verify(mac, msg, c, tagsize)
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
New returns a hash.Hash computing the CMAC checksum.
NewWithTagSize returns a hash.Hash computing the CMAC checksum with the
given tag size. The tag size must between the 1 and the cipher's block size.
Sum computes the CMAC checksum with the given tagsize of msg using the cipher.Block.
Verify computes the CMAC checksum with the given tagsize of msg and compares
it with the given mac. This functions returns true if and only if the given mac
is equal to the computed one.
Source Files
¶
Directories
¶
Show internal
Collapse all
Package aes implements the CMAC MAC with the AES.
Package aes implements the CMAC MAC with the AES.
Click to show internal directories.
Click to hide internal directories.