Type Aliasswift-crypto 3.8.0Crypto
HPKEEphemeralPrivateKey
The type of the ephemeral private key associated with this public key.
HPKE-KEM-Curve25519.swift:61typealias HPKEEphemeralPrivateKey = Curve25519.KeyAgreement.PrivateKey
Other members in extension
Typealiases
typealias EphemeralPrivateKey
The type of the ephemeral private key associated with this public key.
Type members
init<D>(D, kem: HPKE.KEM
) throws Creates a Curve25519 elliptic curve public key for use with Diffie-Hellman key exchange.
init<D>(rawRepresentation: D
) throws Creates a Curve25519 public key for key agreement from a collection of bytes.
Instance members
var rawRepresentation: Data
A representation of the Curve25519 public key as a collection of bytes.
func hpkeRepresentation(kem: HPKE.KEM
) throws -> Data Creates a serialized representation of the public key.