INNER CODE UNIT · Go
func
emmansun/gmsm · cbcmac/cbcmac.go:269
func (c *cmac) Reset() {
for i := range c.tag {
c.tag[i] = 0
}
c.nx = 0
c.len = 0
}
// BlockSize returns the block size of the underlying block cipher.
// See [crypto.Hash.BlockSize].
func (c *cmac) BlockSize() int {
return c.blockSize
}
// Size returns the MAC value's number of bytes.
// See [crypto.Hash.Size].
func (c *cmac) Size() int {
return c.size