init(rawRepresentation:)

Creates a P-256 private key for key agreement from a collection of bytes.

ECDH.swift:395
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
init<Bytes>(rawRepresentation: Bytes) throws where Bytes : ContiguousBytes

Parameters

rawRepresentation

A raw representation of the key as a collection of contiguous bytes.