EphemeralKeySource

fun interface EphemeralKeySource(source)

Where ephemeral key pairs come from: fresh ones for every session by default (RFC 9528 §9.2 requires that), or fixed ones to replay the RFC 9529 traces. Called for X (Initiator, Diffie-Hellman and KEM suites) and Y (Responder, Diffie-Hellman suites; a KEM Responder encapsulates instead).

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract suspend fun keyPair(crypto: CryptoBackend, type: KeyType): KeyPair

A key pair of type, made with or for crypto. EDHOC destroys the private key once it no longer needs it, whatever kind of handle it is, and also when it cannot use the pair, for example because the public key has the wrong size for type.