sharedSecretFromKeyAgreement(with:)

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

ECDH.swift:1356
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
func sharedSecretFromKeyAgreement(with publicKeyShare: P256.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.