OscoreOptionValue

class OscoreOptionValue(partialIv: ByteArray? = null, kid: ByteArray? = null, kidContext: ByteArray? = null)(source)

The value of the OSCORE option: the compressed COSE header (RFC 8613 §6.1).

 0 1 2 3 4 5 6 7
|0 0 0|h|k| n | Partial IV (n bytes) | s | kid context (s bytes) | kid (rest) |

A field that is null is absent; an empty kid is present but empty, as in RFC 8613 Appendix C.4.

Constructors

Link copied to clipboard
constructor(partialIv: ByteArray? = null, kid: ByteArray? = null, kidContext: ByteArray? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

The option value; empty when nothing is present (§6.1: flag byte 0x00 is never sent).

Link copied to clipboard
open override fun toString(): String