SecurityMode

Channel-security modes of RFC 7252 §9. RFC 8323 §9.1 uses the same three secured modes for TLS.

These describe DTLS and TLS only. OSCORE protects messages end to end regardless of the mode.

Entries

Link copied to clipboard

No DTLS or TLS.

Link copied to clipboard

Pre-shared keys, TLS_PSK_WITH_AES_128_CCM_8 (RFC 7252 §9.1.3.1).

Link copied to clipboard

Raw public keys (RFC 7250), TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 (RFC 7252 §9.1.3.2).

Link copied to clipboard

X.509 certificates, same cipher suite as raw public keys (RFC 7252 §9.1.3.3).

Properties

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

RFC 7252 §9: NoSec and RawPublicKey are mandatory to implement.

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

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.