Operatorswift-crypto 3.15.1Crypto
==(_:_:)
DH.swift:159- iOS
- 13+
- macOS
- 10.15+
- Mac Catalyst
- 13+
- tvOS
- 13+
- visionOS
- 1.0+
- watchOS
- 6+
static func == (lhs: SharedSecret, rhs: SharedSecret) -> Bool static func == (lhs: SharedSecret, rhs: SharedSecret) -> Bool import CryptoA cryptography library for Swift.
struct SharedSecretA key agreement result from which you can derive a symmetric cryptographic key.
@frozen struct BoolA value type whose instances are either true or false.
var description: String { get }static func == <D>(lhs: SharedSecret, rhs: D) -> Bool where D : DataProtocol Determines whether a shared secret is equivalent to a collection of contiguous bytes.
func hash(into hasher: inout Hasher) func hkdfDerivedSymmetricKey<H, Salt, SI>(using hashFunction: H.Type, salt: Salt, sharedInfo: SI, outputByteCount: Int) -> SymmetricKey where H : HashFunction, Salt : DataProtocol, SI : DataProtocol Derives a symmetric encryption key from the secret using HKDF key derivation.
func withUnsafeBytes<R>(_ body: (UnsafeRawBufferPointer) throws -> R) rethrows -> R Invokes the given closure with a buffer pointer covering the raw bytes of the shared secret.
func x963DerivedSymmetricKey<H, SI>(using hashFunction: H.Type, sharedInfo: SI, outputByteCount: Int) -> SymmetricKey where H : HashFunction, SI : DataProtocol Derives a symmetric encryption key from the secret using x9.63 key derivation.