Computes a shared secret with the provided public key from another
party.
- 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.
Creates a P-256 private key for key agreement from a data
representation of the key with the given authentication
context.
- Parameters:
- dataRepresentation: A data representation of the key.
- authenticationContext: A local authentication context.
Creates a P-256 private key for key agreement with the
specified access control.
- Parameters:
- compactRepresentable: A Boolean value that indicates
whether CryptoKit creates the key with the structure to
enable compact point encoding.
- accessControl: The protection type and flags to use
when creating the associated access control object.
- authenticationContext: A local authentication context.