KeyExchange public protocol KeyExchange Cryptographically secure key exchange keyPair() Generate a random key pair for key exchange with peer Declaration Swift func keyPair() -> (KeyExchangePrivateKey, KeyExchangePublicKey)? sharedKey(own:peer:) Generate shared key by combining own private key and peer public key Declaration Swift func sharedKey(own: KeyExchangePrivateKey, peer: KeyExchangePublicKey) -> KeyExchangeSharedKey? © 2021 adamfowleruk. All rights reserved. (Last updated: 2021-06-23) Generated by jazzy ♪♫ v0.13.7, a Realm project.