const (
NonceSize = 16
)
type BlockCipherFunc func([]byte) (cipher.Block, error)
type Hmac struct {
// contains filtered or unexported fields
}
func New(key []byte, f BlockCipherFunc) (hmac *Hmac, err error)
func (c Hmac) ComputeAuthTag(aad, nonce, ciphertext []byte) ([]byte, error)
func (c Hmac) NonceSize() int
NonceSize fulfills the crypto.AEAD interface
func (c Hmac) Open(dst, nonce, ciphertext, data []byte) ([]byte, error)
Open fulfills the crypto.AEAD interface
func (c Hmac) Overhead() int
Overhead fulfills the crypto.AEAD interface
func (c Hmac) Seal(dst, nonce, plaintext, data []byte) []byte
Seal fulfills the crypto.AEAD interface