init(pemRepresentation:)

Creates a P-256 public key for key agreement from a Privacy-Enhanced Mail (PEM) representation.

ECDH.swift:311
iOS
13+
macOS
10.15+
Mac Catalyst
13+
tvOS
13+
visionOS
1.0+
watchOS
6+
init(pemRepresentation: String) throws

Parameters

pemRepresentation

A PEM representation of the key.