<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoKit",
  "identifier" : "/documentation/CryptoKit/Digest/==(_:_:)-7yz3z",
  "metadataVersion" : "0.1.0",
  "role" : "Operator",
  "symbol" : {
    "kind" : "Operator",
    "modules" : [
      "Apple CryptoKit",
      "CryptoKit"
    ],
    "preciseIdentifier" : "s:9CryptoKit6DigestPAAE2eeoiySbx_qd__t10Foundation12DataProtocolRd__lFZ"
  },
  "title" : "==(_:_:)"
}
-->

# ==(_:_:)

Determines whether a digest is equivalent to a collection of contiguous
bytes.

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

## Parameters

`lhs`

A digest to compare.

`rhs`

A collection of contiguous bytes to compare.

## Return Value

A Boolean value that’s `true` if the digest is equivalent to
the collection of binary data.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)