---
title: HMAC.MAC
framework: cryptokit
role: symbol
role_heading: Type Alias
path: cryptokit/hmac/mac
---

# HMAC.MAC

An alias for a hash-based message authentication code.

## Declaration

```swift
typealias MAC = HashedAuthenticationCode<H>
```

## See Also

### Working with codes

- [HashedAuthenticationCode](cryptokit/hashedauthenticationcode.md)
- [MessageAuthenticationCode](cryptokit/messageauthenticationcode.md)
