Operator (Default implementation)swift-crypto 3.12.2Crypto

==(_:_:)

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

Digest.swift:79
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
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.

Returns

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