Operator (Default implementation)swift-crypto 3.12.2Crypto

==(_:_:)

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

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

Returns

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