sharedSecretFromKeyAgreement(with:)

Computes a shared secret with the provided public key from another party.

X25519Keys.swift:108
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
func sharedSecretFromKeyAgreement(with publicKeyShare: Curve25519.KeyAgreement.PublicKey) throws -> SharedSecret

Parameters

publicKeyShare

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.