Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
BrainpoolP512.cs
1using System.Globalization;
2using System.Numerics;
3
5{
11 {
12 private static readonly BigInteger p0 = BigInteger.Parse("0AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA703308717D4D9B009BC66842AECDA12AE6A380E62881FF2F2D82C68528AA6056583A48F3", NumberStyles.HexNumber);
13 private static readonly BigInteger a = BigInteger.Parse("07830A3318B603B89E2327145AC234CC594CBDD8D3DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CA", NumberStyles.HexNumber);
14 private static readonly BigInteger b = BigInteger.Parse("03DF91610A83441CAEA9863BC2DED5D5AA8253AA10A2EF1C98B9AC8B57F1117A72BF2C7B9E7C1AC4D77FC94CADC083E67984050B75EBAE5DD2809BD638016F723", NumberStyles.HexNumber);
15 private static readonly BigInteger x = BigInteger.Parse("081AEE4BDD82ED9645A21322E9C4C6A9385ED9F70B5D916C1B43B62EEF4D0098EFF3B1F78E2D0D48D50D1687B93B97D5F7C6D5047406A5E688B352209BCB9F822", NumberStyles.HexNumber);
16 private static readonly BigInteger y = BigInteger.Parse("07DDE385D566332ECC0EABFA9CF7822FDF209F70024A57B1AA000C55B881F8111B2DCDE494A5F485E5BCA4BD88A2763AED1CA2B2FA8F0540678CD1E0F3AD80892", NumberStyles.HexNumber);
17 private static readonly BigInteger q = BigInteger.Parse("0AADD9DB8DBE9C48B3FD4E6AE33C9FC07CB308DB3B3C9D20ED6639CCA70330870553E5C414CA92619418661197FAC10471DB1D381085DDADDB58796829CA90069", NumberStyles.HexNumber);
18
24 : base(p0, new PointOnCurve(x, y), a, b, q)
25 {
26 }
27
33 public BrainpoolP512(byte[] Secret)
34 : base(p0, new PointOnCurve(x, y), a, b, q, Secret)
35 {
36 }
37
43 public BrainpoolP512(uint[] Secret)
44 : base(p0, new PointOnCurve(x, y), a, b, q, Secret)
45 {
46 }
47
51 public override string CurveName => "Brainpool P-512";
52
57
62
63 }
64}
Brainpool P-512 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
BrainpoolP512()
Brainpool P-512 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
override string CurveName
Name of curve.
override HashFunctionStream HashFunctionStream
Hash function to use in signatures for data streams.
BrainpoolP512(byte[] Secret)
Brainpool P-512 Elliptic Curve, as defined in RFC5639: https://datatracker.ietf.org/doc/html/rfc5639
BrainpoolP512(uint[] Secret)
Brainpool P-512 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[] ComputeSHA512Hash(byte[] Data)
Computes the SHA-512 hash of a block of binary data.
Definition: Hashes.cs:577
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