Contents

init(_:kem:)

Creates a NIST P-521 elliptic curve public key for use with Diffie-Hellman key exchange.

Declaration

init<D>(_ serialization: D, kem: HPKE.KEM) throws where D : ContiguousBytes

Discussion

  • serialization: The serialized bytes of the public key.

  • kem: The Key Encapsulation Mechanism to use with the public key.