CombinedRequestSecurity

The client side of the EDHOC + OSCORE request (RFC 9668 §3.2): the first request protected with the new OSCORE context also carries EDHOC message_3, saving a round trip. Later requests are plain OSCORE.

oscore protects requests with the context derived from the session; message3 is the Initiator's message_3, sent once.

Constructors

Link copied to clipboard
constructor(oscore: ClientMessageSecurity, message3: ByteArray)

Functions

Link copied to clipboard
suspend fun isMessage3Pending(): Boolean

Whether message_3 still waits for a request to travel with.

Link copied to clipboard
open suspend override fun protectRequest(request: CoapMessage, peer: Endpoint): ProtectedRequest?