Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
NistP192.cs
1using System;
2using System.Numerics;
3
5{
10 public class NistP192 : NistPrimeCurve
11 {
12 private static readonly BigInteger p0 = BigInteger.Pow(2, 192) - BigInteger.Pow(2, 64) - 1;
13 private static readonly BigInteger n0 = BigInteger.Parse("6277101735386680763835789423176059013767194773182842284081");
14 private static readonly BigInteger BasePointX = ToBigInteger(new uint[]
15 {
16 0x188da80e, 0xb03090f6, 0x7cbf20eb, 0x43a18800, 0xf4ff0afd, 0x82ff1012
17 });
18 private static readonly BigInteger BasePointY = ToBigInteger(new uint[]
19 {
20 0x07192b95, 0xffc8da78, 0x631011ed, 0x6b24cdd5, 0x73f977a1, 0x1e794811
21 });
22
27 public NistP192()
28 : base(p0, new PointOnCurve(BasePointX, BasePointY), n0)
29 {
30 }
31
37 public NistP192(byte[] Secret)
38 : base(p0, new PointOnCurve(BasePointX, BasePointY), n0, Secret)
39 {
40 }
41
45 public override string CurveName => "NIST P-192";
46
47 }
48}
NIST P-192 Elliptic Curve, as defined in NIST FIPS BUB 186-4: https://nvlpubs.nist....
Definition: NistP192.cs:11
override string CurveName
Name of curve.
Definition: NistP192.cs:45
NistP192()
NIST P-192 Elliptic Curve, as defined in NIST FIPS BUB 186-4: https://nvlpubs.nist....
Definition: NistP192.cs:27
NistP192(byte[] Secret)
NIST P-192 Elliptic Curve, as defined in NIST FIPS BUB 186-4: https://nvlpubs.nist....
Definition: NistP192.cs:37
Base class of Elliptic curves over a prime field defined by NIST.
static BigInteger ToBigInteger(uint[] BigEndianDWords)
Converts a sequence of unsigned 32-bit integers to a BigInteger.
Represents a point on a curve.
Definition: PointOnCurve.cs:11