sharedSecretFromKeyAgreement(with:)
Computes a shared secret with the provided public key from another party.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
func sharedSecretFromKeyAgreement(with publicKeyShare: Curve25519.KeyAgreement.PublicKey) throws -> SharedSecret
Parameters
The public key from another party to be combined with the private key from this user to create the shared secret.
Returns
The computed shared secret.