Documentation
¶
Overview ¶
Package subtle provides subtle implementations of the MAC primitive.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCMACParams ¶
ValidateCMACParams validates the parameters for an AES-CMAC against the recommended parameters.
Types ¶
type AESCMAC ¶
type AESCMAC struct {
// contains filtered or unexported fields
}
AESCMAC represents an AES-CMAC struct that implements the MAC interface.
func NewAESCMAC ¶
NewAESCMAC creates a new AESCMAC object that implements the MAC interface.
func (AESCMAC) ComputeMAC ¶
ComputeMAC computes message authentication code (MAC) for code data.
type HMAC ¶
type HMAC struct { HashFunc func() hash.Hash TagSize uint32 // contains filtered or unexported fields }
HMAC implementation of interface tink.MAC
func (*HMAC) ComputeMAC ¶
ComputeMAC computes message authentication code (MAC) for the given data.
Click to show internal directories.
Click to hide internal directories.