Discover Packages
github.com/deatil/go-cryptobin
hash
pmac
package
Version:
v1.0.3022
Opens a new window with list of versions in this module.
Published: Aug 13, 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
Documentation
¶
New creates a new PMAC instance using the given cipher
NewWithTagSize returns a hash.Hash computing the PMAC checksum with the
given tag size. The tag size must between the 1 and the cipher's block size.
Sum computes the PMAC checksum with the given tagsize of msg using the cipher.Block.
Verify computes the PMAC 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.
type Block struct {
Data []byte
Size int
}
Block is a 128-bit array used by certain block ciphers (i.e. AES)
Clear zeroes out the contents of the block
Dbl performs a doubling of a block over GF(2^128):
a<<1 if firstbit(a)=0
(a<<1) ⊕ 0¹²⁰10000111 if firstbit(a)=1
Encrypt a block with the given block cipher
Source Files
¶
Directories
¶
Package aes implements the PMAC MAC with the AES.
Package aes implements the PMAC MAC with the AES.
Click to show internal directories.
Click to hide internal directories.