Required Initializerswift-crypto 3.12.2Crypto
init(_:kem:)
Creates a public key from an encoded representation.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
init<D>(_ serialization: D, kem: HPKE.KEM) throws where D : ContiguousBytes
serialization: The serialized key data.
kem: The key encapsulation mechanism that the sender used to encapsulate the key.