Enum Token
The smallest unit of the Noise handshake language.
Namespace: Noise
Assembly: Noise.dll
Syntax
public enum Token
Fields
Name | Description |
---|---|
E | The sender generates a new ephemeral key pair and stores it in the e variable, writes the ephemeral public key as cleartext into the message buffer, and hashes the public key along with the old h to derive a new h. |
EE | A DH is performed between the initiator's ephemeral private key and the responder's ephemeral public key. The result is hashed along with the old ck to derive a new ck and k, and n is set to zero. |
ES | A DH is performed between the initiator's ephemeral private key and the responder's static public key. The result is hashed along with the old ck to derive a new ck and k, and n is set to zero. |
PSK | Noise provides a pre-shared symmetric key or PSK mode to support protocols where both parties have a 32-byte shared secret key. In a PSK handshake, a "psk" token is allowed to appear one or more times in a handshake pattern. This token can only appear in message patterns (not pre-message patterns). |
S | The sender writes its static public key from the s variable into the message buffer, encrypting it if k is non-empty, and hashes the output along with the old h to derive a new h. |
SE | A DH is performed between the initiator's static private key and the responder's ephemeral public key. The result is hashed along with the old ck to derive a new ck and k, and n is set to zero. |
SS | A DH is performed between the initiator's static private key and the responder's static public key. The result is hashed along with the old ck to derive a new ck and k, and n is set to zero. |