internal ECKeyPair (Number d, ECPoint Q, ECDomainParameters domain, ECDomainNames domainName) { _d = d; _Q = Q; _domain = domain; _domainName = domainName; }
/// <param name="d">Private Key</param> /// <param name="Q">Public Key</param> internal ECKeyPair (Number d, ECPoint Q, ECDomainParameters domain) : this (d, Q, domain, ECDomainNames.none) { _domainName = ECDomains.GetDomainName (domain); }
static void Test (string p, string a, string b, string Gx, string Gy, string n, int h, ECDomainParameters domain) { IFiniteField ff = domain.Group.FiniteField; AreEqual (p, domain.P, "p"); AreEqual (a, ff.ToNormal (domain.A), "a"); AreEqual (b, ff.ToNormal (domain.B), "b"); AreEqual (Gx, ff.ToNormal (domain.G.X), "Gx"); AreEqual (Gy, ff.ToNormal (domain.G.Y), "Gy"); AreEqual (n, domain.N, "n"); Assert.AreEqual (h, domain.H, "h"); }