---
title: "==(_:_:)"
framework: cryptokit
role: symbol
role_heading: Operator
path: "cryptokit/messageauthenticationcode/==(_:_:)-b90"
---

# ==(_:_:)

Returns a Boolean value indicating whether two message authentication codes are equal.

## Declaration

```swift
static func == (lhs: Self, rhs: Self) -> Bool
```

## Parameters

- `lhs`: The first message authentication code to compare.
- `rhs`: The second message authentication code to compare.

## Return Value

Return Value A Boolean value that’s true if the message authentication codes are equivalent.

## See Also

### Comparing codes

- [==(_:_:)](cryptokit/messageauthenticationcode/==(_:_:)-3rxc4.md)
