Mode

Entries

Link copied to clipboard

Unauthenticated sender, no pre-shared secret (RFC 9180: mode_base)

Link copied to clipboard

Authentication using a pre-shared secret (RFC 9180: mode_psk)

Link copied to clipboard

Sender authentication using a KEM keypair (RFC 9180: mode_auth)

Link copied to clipboard

Authentication using both pre-shared secret and KEM keypair (RFC 9180: mode_auth_psk)

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
Link copied to clipboard

RFC 9180: mode_id

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

Functions

Link copied to clipboard
fun valueOf(value: String): HPKE.Mode

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.