init(rawRepresentation:)

Creates a P-521 public key for key agreement from a collection of bytes.

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

Parameters

rawRepresentation

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