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

Class ProtocolConfig

A set of parameters used to instantiate an initial HandshakeState from a concrete Protocol.

Inheritance
System.Object
ProtocolConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Noise
Assembly: Noise.dll
Syntax
public sealed class ProtocolConfig

Constructors

| Improve this Doc View Source

ProtocolConfig(Boolean, Byte[], Byte[], Byte[], IEnumerable<Byte[]>)

Initializes a new instance of the ProtocolConfig class.

Declaration
public ProtocolConfig(bool initiator = false, byte[] prologue = null, byte[] s = null, byte[] rs = null, IEnumerable<byte[]> psks = null)
Parameters
Type Name Description
System.Boolean initiator

A boolean indicating the initiator or responder role.

System.Byte[] prologue

A byte sequence which may be zero-length, or which may contain context information that both parties want to confirm is identical.

System.Byte[] s

The local static private key.

System.Byte[] rs

The remote party's static public key.

System.Collections.Generic.IEnumerable<System.Byte[]> psks

The collection of zero or more 32-byte pre-shared secret keys.

Properties

| Improve this Doc View Source

Initiator

Gets or sets the initiator or responder role.

Declaration
public bool Initiator { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LocalStatic

Gets or sets the local static private key.

Declaration
public byte[] LocalStatic { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

PreSharedKeys

Gets or sets the collection of zero or more 32-byte pre-shared secret keys.

Declaration
public IEnumerable<byte[]> PreSharedKeys { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Byte[]>
| Improve this Doc View Source

Prologue

Gets or sets the prologue (a byte sequence which may be zero-length, or which may contain context information that both parties want to confirm is identical).

Declaration
public byte[] Prologue { get; set; }
Property Value
Type Description
System.Byte[]
| Improve this Doc View Source

RemoteStatic

Gets or sets the remote party's static public key.

Declaration
public byte[] RemoteStatic { get; set; }
Property Value
Type Description
System.Byte[]
  • Improve this Doc
  • View Source
Back to top Generated by DocFX