Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
PaceDhProtocol.cs
1using System;
2using System.Xml;
4
6{
10 public abstract class PaceDhProtocol() : PaceProtocol()
11 {
18 public override byte[] CreateNewKey(byte[]? Seed, ref int Index)
19 {
20 throw new NotImplementedException("DH not implemented."); // TODO
21 }
22
27 public void SetPrivateKey(byte[] PrivateKey)
28 {
29 throw new NotImplementedException("DH not implemented."); // TODO
30 }
31
36 public override byte[] ImportKey(XmlDocument Xml)
37 {
38 throw new NotImplementedException("DH not implemented."); // TODO
39 }
40
47 public override byte[] GetSharedSecret(byte[] RemotePublicKey)
48 {
49 throw new NotImplementedException("DH not implemented."); // TODO
50 }
51
56 public override IPaceProtocol CreateEphemeralKey()
57 {
58 return (IPaceProtocol)Types.Instantiate(this.GetType());
59 }
60 }
61}
Static class that dynamically manages types and interfaces available in the runtime environment.
Definition: Types.cs:15
static object Instantiate(Type Type, params object[] Arguments)
Returns an instance of the type Type . If one needs to be created, it is. If the constructor requires...
Definition: Types.cs:1454
Basic interface for PACE protocols.
abstract class PaceDhProtocol()
Abstract base class for PACE protocols using traditional finite group Diffie-Hellman.