Required Instance Methodswift-crypto 3.12.2Crypto

hpkeRepresentation(kem:)

Creates an encoded representation of the public key.

DHKEM.swift:34
iOS
13+
macOS
10.15+
tvOS
13+
watchOS
6+
func hpkeRepresentation(kem: HPKE.KEM) throws -> Data

Returns

The encoded key data.

  • kem: The key encapsulation mechanism for encapsulating the key.