Required Instance Propertyswift-crypto 3.12.2Crypto
publicKey
DH.swift:24- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
var publicKey: PublicKey { get }
var publicKey: PublicKey { get }
s6Crypto25DiffieHellmanKeyAgreementP06publicD006PublicD0Qzvp
What are these?3XT3G
import Crypto
A cryptography library for Swift.
protocol DiffieHellmanKeyAgreement
A Diffie-Hellman Key Agreement Key
associatedtype PublicKey
The public key share type to perform the DH Key Agreement
func sharedSecretFromKeyAgreement(with publicKeyShare: PublicKey) throws -> SharedSecret
Performs a Diffie-Hellman Key Agreement.