Protocolswift-crypto 3.12.2Crypto
HPKEPublicKeySerialization
A type that HPKE
uses to encode the public key.
- iOS
- 13+
- macOS
- 10.15+
- tvOS
- 13+
- watchOS
- 6+
protocol HPKEPublicKeySerialization
Browse conforming typesA type that HPKE
uses to encode the public key.
protocol HPKEPublicKeySerialization
import Crypto
A cryptography library for Swift.
enum HPKE
A container for hybrid public key encryption (HPKE) operations.
init<D>(_ serialization: D, kem: HPKE.KEM) throws where D : ContiguousBytes
Creates a public key from an encoded representation.
func hpkeRepresentation(kem: HPKE.KEM) throws -> Data
Creates an encoded representation of the public key.
protocol HPKEDiffieHellmanPublicKey : HPKEPublicKeySerialization
A type that represents the public key in a Diffie-Hellman key exchange.