Contents

init(_:kem:)

Creates a NIST P-256 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.