• API Reference
Show / Hide Table of Contents
  • Noise
    • CipherFunction
    • DhFunction
    • HandshakePattern
    • HandshakeState
    • HashFunction
    • KeyPair
    • MessagePattern
    • PatternModifiers
    • PreMessagePattern
    • Protocol
    • ProtocolConfig
    • Token
    • Transport

Enum PatternModifiers

Pattern modifiers specify arbitrary extensions or modifications to the behavior specified by the handshake pattern.

Namespace: Noise
Assembly: Noise.dll
Syntax
[Flags]
public enum PatternModifiers

Fields

Name Description
Fallback

The fallback modifier converts an Alice-initiated pattern to a Bob-initiated pattern by converting Alice's initial message to a pre-message that Bob must receive through some other means (e.g. as the initial field in an initial IK message from Alice). After this conversion, the rest of the handshake pattern is interpreted as a Bob-initiated handshake pattern.

None

No pattern modifiers were selected.

Psk0

The modifier psk0 places a "psk" token at the beginning of the first handshake message.

Psk1

The modifier psk1 places a "psk" token at the end of the first handshake message.

Psk2

The modifier psk2 places a "psk" token at the end of the second handshake message.

Psk3

The modifier psk0 places a "psk" token at the end of the third handshake message.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX