init(derRepresentation:)

Creates a P-256 private key for key agreement from a Distinguished Encoding Rules (DER) encoded representation.

ECDH.swift:424
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
init<Bytes>(derRepresentation: Bytes) throws where Bytes : RandomAccessCollection, Bytes.Element == UInt8

Parameters

derRepresentation

A DER-encoded representation of the key.