---
title: "==(_:_:)"
framework: cryptokit
role: symbol
role_heading: Operator
path: "cryptokit/digest/==(_:_:)-6m59k"
---

# ==(_:_:)

Determines whether two digests are equal.

## Declaration

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

## Parameters

- `lhs`: The first digest to compare.
- `rhs`: The second digest to compare.

## Return Value

Return Value A Boolean value set to true if the two digests are equal.

## See Also

### Comparing digests

- [==(_:_:)](cryptokit/digest/==(_:_:)-7yz3z.md)
