# Packages
Package subtle provides an implementation of PRFs like AES-CMAC.
# Functions
AESCMACPRFKeyTemplate is a KeyTemplate that generates a AES-CMAC key with the following parameters: - Key size: 32 bytes.
HKDFSHA256PRFKeyTemplate is a KeyTemplate that generates an HKDF key with the following parameters: - Key size: 32 bytes - Salt: empty - Hash function: SHA256.
HMACSHA256PRFKeyTemplate is a KeyTemplate that generates an HMAC key with the following parameters: - Key size: 32 bytes - Hash function: SHA256.
HMACSHA512PRFKeyTemplate is a KeyTemplate that generates an HMAC key with the following parameters: - Key size: 64 bytes - Hash function: SHA512.
NewPRFSet creates a prf.Set primitive from the given keyset handle.
NewPRFSetWithKeyManager creates a prf.Set primitive from the given keyset handle and a custom key manager.
# Interfaces
The PRF interface is an abstraction for an element of a pseudo random function family, selected by a key.