DiffieHellmanMerkle
public class DiffieHellmanMerkle : KeyExchange
Diffie-Hellman-Merkle key exchange using NCSC Foundation Profile MODP group 14 (2048-bit) by default
-
Undocumented
Declaration
Swift
public init(_ parameters: DiffieHellmanParameters = .modpGroup14)
-
Declaration
Swift
public func keyPair() -> (KeyExchangePrivateKey, KeyExchangePublicKey)?
-
Declaration
Swift
public func sharedKey(own: KeyExchangePrivateKey, peer: KeyExchangePublicKey) -> KeyExchangeSharedKey?
-
Run performance test on phone hardware Note : Use release build for performance tests as it is over 40x faster than debug build
Declaration
Swift
public func performanceTest(_ samples: UInt64 = 100)