ConnectionIdentifierProvider
Chooses the connection identifier an endpoint asks its peer to use (RFC 9528 §3.3.1). The Initiator calls it once per message_1 with peer = null; the Responder calls it with C_I and must not return C_I, because with OSCORE both would become the same Recipient ID (RFC 9528 §3.3.3).
Functions
Link copied to clipboard
abstract suspend fun choose(crypto: CryptoBackend, peer: ConnectionIdentifier?): ConnectionIdentifier
The identifier to send; peer is C_I when the Responder chooses C_R, null for the Initiator.