YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.sendspin.secure.SendspinPsk Class Reference

Pre-shared keys of the protocol (spec, "Pre-Shared Key"): the id by which a client finds the PSK of a server, the three categories, and the Sentinel PSK that stands in when no other PSK applies. More...

Collaboration diagram for de.yaacc.sendspin.secure.SendspinPsk:
Collaboration graph

Classes

enum  Category
 The category the server declares for the PSK it references (the psk_category of Noise message 1). More...
 

Static Public Member Functions

static byte[] sentinel ()
 
static String pskId (byte[] psk)
 base64url(SHA-256("sendspin-psk-id-v1" || PSK)): 43 characters.
 
static String sentinelId ()
 
static boolean isSentinel (byte[] psk)
 

Detailed Description

Pre-shared keys of the protocol (spec, "Pre-Shared Key"): the id by which a client finds the PSK of a server, the three categories, and the Sentinel PSK that stands in when no other PSK applies.

The Sentinel is a published constant: it gives no authentication.

Member Function Documentation

◆ sentinel()

static byte[] de.yaacc.sendspin.secure.SendspinPsk.sentinel ( )
static
Returns
a copy of the Sentinel PSK, SHA-256 of sendspin-sentinel-psk-v1

Referenced by de.yaacc.sendspin.session.ClientHandshake.perform(), and de.yaacc.sendspin.session.ServerHandshake.perform().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: