# Packages
Package subtle provides subtle implementations of the MAC primitive.
# Functions
AESCMACTag128KeyTemplate is a KeyTemplate that generates a AES-CMAC key with the following parameters: - Key size: 32 bytes - Tag size: 16 bytes.
HMACSHA256Tag128KeyTemplate is a KeyTemplate that generates a HMAC key with the following parameters: - Key size: 32 bytes - Tag size: 16 bytes - Hash function: SHA256.
HMACSHA256Tag256KeyTemplate is a KeyTemplate that generates a HMAC key with the following parameters: - Key size: 32 bytes - Tag size: 32 bytes - Hash function: SHA256.
HMACSHA512Tag256KeyTemplate is a KeyTemplate that generates a HMAC key with the following parameters: - Key size: 64 bytes - Tag size: 32 bytes - Hash function: SHA512.
HMACSHA512Tag512KeyTemplate is a KeyTemplate that generates a HMAC key with the following parameters: - Key size: 64 bytes - Tag size: 64 bytes - Hash function: SHA512.
New creates a MAC primitive from the given keyset handle.
NewWithKeyManager creates a MAC primitive from the given keyset handle and a custom key manager.