Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NistP521Endpoint.cs
3
5{
10 {
15 : this(new NistP521())
16 {
17 }
18
23 public NistP521Endpoint(IE2eSymmetricCipher SymmetricCipher)
24 : this(new NistP521(), SymmetricCipher)
25 {
26 }
27
33 : this(Curve, new Aes256())
34 {
35 }
36
43 : base(Curve, SymmetricCipher)
44 {
45 }
46
52 : this(PublicKey, new Aes256())
53 {
54 }
55
61 public NistP521Endpoint(byte[] PublicKey, IE2eSymmetricCipher SymmetricCipher)
62 : base(PublicKey, new NistP521(), SymmetricCipher)
63 {
64 }
65
69 public override string LocalName => "p521";
70
74 public override int SecurityStrength => 256;
75
82 {
84 }
85
91 public override IE2eEndpoint CreatePrivate(byte[] Secret)
92 {
93 return new NistP521Endpoint(new NistP521(Secret), this.DefaultSymmetricCipher.CreteNew());
94 }
95
101 public override IE2eEndpoint CreatePublic(byte[] PublicKey)
102 {
104 }
105 }
106}
virtual IE2eSymmetricCipher DefaultSymmetricCipher
Default symmetric cipher.
Definition: E2eEndpoint.cs:282
Abstract base class for NIST Curve endpoints
Definition: NistEndpoint.cs:10
NistP521Endpoint(byte[] PublicKey)
NIST P-521 Curve
override string LocalName
Local name of the E2E encryption scheme
NistP521Endpoint(NistP521 Curve, IE2eSymmetricCipher SymmetricCipher)
NIST P-521 Curve
NistP521Endpoint(IE2eSymmetricCipher SymmetricCipher)
NIST P-521 Curve
NistP521Endpoint(NistP521 Curve)
NIST P-521 Curve
override IE2eEndpoint CreatePrivate(byte[] Secret)
Creates a new endpoint given a private key.
NistP521Endpoint(byte[] PublicKey, IE2eSymmetricCipher SymmetricCipher)
NIST P-521 Curve
override int SecurityStrength
Security strength of End-to-End encryption scheme.
override IE2eEndpoint CreatePublic(byte[] PublicKey)
Creates a new endpoint given a public key.
override IE2eEndpoint Create(int SecurityStrength)
Creates a new key.
Implements support for the AES-256 cipher in hybrid End-to-End encryption schemes.
Definition: Aes256.cs:17
NIST P-521 Elliptic Curve, as defined in NIST FIPS BUB 186-4: https://nvlpubs.nist....
Definition: NistP521.cs:10
Abstract base class for End-to-End encryption schemes.
Definition: IE2eEndpoint.cs:13
Interface for symmetric ciphers.
IE2eSymmetricCipher CreteNew()
Creates a new symmetric cipher object with the same settings as the current object.