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

# ==(_:_:)

Returns a Boolean value indicating whether a message authentication code is equivalent to a collection of binary data.

## Declaration

```swift
static func == <D>(lhs: Self, rhs: D) -> Bool where D : DataProtocol
```

## Parameters

- `lhs`: A message authentication code to compare.
- `rhs`: A collection of binary data to compare.

## Return Value

Return Value A Boolean value that’s true if the message authentication code and the collection of binary data are equivalent.

## See Also

### Comparing codes

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