Class ProtocolConfig
A set of parameters used to instantiate an initial HandshakeState from a concrete Protocol.
Inheritance
Inherited Members
Namespace: Noise
Assembly: Noise.dll
Syntax
public sealed class ProtocolConfig
Constructors
| Improve this Doc View SourceProtocolConfig(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 SourceInitiator
Gets or sets the initiator or responder role.
Declaration
public bool Initiator { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
LocalStatic
Gets or sets the local static private key.
Declaration
public byte[] LocalStatic { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |
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[]> |
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[] |
RemoteStatic
Gets or sets the remote party's static public key.
Declaration
public byte[] RemoteStatic { get; set; }
Property Value
Type | Description |
---|---|
System.Byte[] |