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

# ==(_:_:)

Determines whether a shared secret is equivalent to a collection of contiguous bytes.

## Declaration

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

## Parameters

- `lhs`: The shared secret to compare.
- `rhs`: A collection of contiguous bytes to compare.

## Return Value

Return Value A Boolean value that’s true if the shared secret and the collection of binary data are equivalent.
