OscoreError

Why an OSCORE message was rejected, with the error response RFC 8613 §8.2 and §7.4 suggest for a server. The diagnostic strings are the ones the RFC proposes.

This set may gain constants in any minor release, also after 1.0, as kcoap covers more of OSCORE and the documents that extend it: a when over an error keeps an else branch, which can fall back on the constant's own responseCode and diagnostic. A new constant is an addition, not a breaking change (the project's versioning policy, docs/versioning.md).

Entries

Link copied to clipboard

§8.2 step 2: the OSCORE option or COSE object is malformed.

Link copied to clipboard

§8.2 step 2: no Recipient Context for the 'kid' (and 'kid context').

Link copied to clipboard

§7.4: the Partial IV was already received.

Link copied to clipboard

§8.2 step 6: the AEAD tag did not verify.

Link copied to clipboard

§7.2.1: the Sender Sequence Number reached its maximum; a new context is needed.

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.