Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BrainpoolP320.cs
1using System.Globalization;
2using System.Numerics;
3
5{
11 {
12 private static readonly BigInteger p0 = BigInteger.Parse("0D35E472036BC4FB7E13C785ED201E065F98FCFA6F6F40DEF4F92B9EC7893EC28FCD412B1F1B32E27", NumberStyles.HexNumber);
13 private static readonly BigInteger a = BigInteger.Parse("03EE30B568FBAB0F883CCEBD46D3F3BB8A2A73513F5EB79DA66190EB085FFA9F492F375A97D860EB4", NumberStyles.HexNumber);
14 private static readonly BigInteger b = BigInteger.Parse("0520883949DFDBC42D3AD198640688A6FE13F41349554B49ACC31DCCD884539816F5EB4AC8FB1F1A6", NumberStyles.HexNumber);
15 private static readonly BigInteger x = BigInteger.Parse("043BD7E9AFB53D8B85289BCC48EE5BFE6F20137D10A087EB6E7871E2A10A599C710AF8D0D39E20611", NumberStyles.HexNumber);
16 private static readonly BigInteger y = BigInteger.Parse("014FDD05545EC1CC8AB4093247F77275E0743FFED117182EAA9C77877AAAC6AC7D35245D1692E8EE1", NumberStyles.HexNumber);
17 private static readonly BigInteger q = BigInteger.Parse("0D35E472036BC4FB7E13C785ED201E065F98FCFA5B68F12A32D482EC7EE8658E98691555B44C59311", NumberStyles.HexNumber);
18
24 : base(p0, new PointOnCurve(x, y), a, b, q)
25 {
26 }
27
33 public BrainpoolP320(byte[] Secret)
34 : base(p0, new PointOnCurve(x, y), a, b, q, Secret)
35 {
36 }
37
43 public BrainpoolP320(uint[] Secret)
44 : base(p0, new PointOnCurve(x, y), a, b, q, Secret)
45 {
46 }
47
51 public override string CurveName => "Brainpool P-320";
52
57
62
63 }
64}
Brainpool P-320 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
BrainpoolP320()
Brainpool P-320 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
override HashFunctionStream HashFunctionStream
Hash function to use in signatures for data streams.
BrainpoolP320(uint[] Secret)
Brainpool P-320 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
override string CurveName
Name of curve.
BrainpoolP320(byte[] Secret)
Brainpool P-320 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
Base class of Elliptic curves over a prime field defined by Brainpool.
Contains methods for simple hash calculations.
Definition: Hashes.cs:57
static byte[] ComputeSHA384Hash(byte[] Data)
Computes the SHA-384 hash of a block of binary data.
Definition: Hashes.cs:523
delegate byte[] HashFunctionArray(byte[] Data)
Delegate to hash function.
HashFunction
Hash method enumeration.
Definition: Hashes.cs:26
Represents a point on a curve.
Definition: PointOnCurve.cs:10