MessageAuthenticationKey

A precomputed message authentication key, which can be used to compute hash-based message authentication codes (HMACs).

MessageAuthenticationKey.swift:8
@frozen struct MessageAuthenticationKey<Hash> where Hash : MessageAuthenticationHash

Using this type to generate authentication codes for many messages with the same base key is faster than repeatedly calling MessageAuthenticationHash.init(authenticating:key:).