Пример #1
0
        public static ECPoint SumOfTwoMultiplies(ECPoint P, BigInteger a,
                                                 ECPoint Q, BigInteger b)
        {
            ECCurve c = P.Curve;

            if (!c.Equals(Q.Curve))
            {
                throw new ArgumentException("P and Q must be on same curve");
            }

            // Point multiplication for Koblitz curves (using WTNAF) beats Shamir's trick
            if (c is F2mCurve)
            {
                F2mCurve f2mCurve = (F2mCurve)c;
                if (f2mCurve.IsKoblitz)
                {
                    return(P.Multiply(a).Add(Q.Multiply(b)));
                }
            }

            return(ImplShamirsTrick(P, a, Q, b));
        }
Пример #2
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.Zero;
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE5F83B2D4EA20400EC4557D5ED3E3E7CA5B4B5C83B8E01E5FCF");
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "0060F05F658F49C1AD3AB1890F7184210EFD0987E307C84C27ACCFB8F9F67CC2C460189EB5AAAA62EE222EB1B35540CFE9023746"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0060F05F658F49C1AD3AB1890F7184210EFD0987E307C84C27ACCFB8F9F67CC2C460189EB5AAAA62EE222EB1B35540CFE9023746"
					+ "01E369050B7C4E42ACBA1DACBF04299C3460782F918EA427E6325165E9EA10E3DA5F6C42E9C55215AA9CA27A5863EC48D8E0286B"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #3
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.Zero;
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE9AE2ED07577265DFF7F94451E061E163C61");
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("02"
				//+ "0503213F78CA44883F1A3B8162F188E553CD265F23C1567A16876913B0C2AC2458492836"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0503213F78CA44883F1A3B8162F188E553CD265F23C1567A16876913B0C2AC2458492836"
					+ "01CCDA380F1C9E318D90F95D07E5426FE87E45C0E8184698E45962364E34116177DD2259"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #4
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = FromHex("0066647EDE6C332C7F8C0923BB58213B333B20E9CE4281FE115F7D8F90AD");
				byte[] S = Hex.Decode("74D59FF07F6B413D0EA14B344B20A2DB049B50C3");
				BigInteger n = FromHex("01000000000000000000000000000013E974E72F8A6922031D2603CFE0D7");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "00FAC9DFCBAC8313BB2139F1BB755FEF65BC391F8B36F8F8EB7371FD558B"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "00FAC9DFCBAC8313BB2139F1BB755FEF65BC391F8B36F8F8EB7371FD558B"
					+ "01006A08A41903350678E58528BEBF8A0BEFF867A7CA36716F7E01F81052"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #5
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("0163F35A5137C2CE3EA6ED8667190B0BC43ECD69977702709B");
				BigInteger b = FromHex("00C9BB9E8927D4D64C377E2AB2856A5B16E3EFB7F61D4316AE");
				byte[] S = Hex.Decode("10B7B4D696E676875615175137C8A16FD0DA2211");
				BigInteger n = FromHex("010000000000000000000000015AAB561B005413CCD4EE99D5");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "00D9B67D192E0367C803F39E1A7E82CA14A651350AAE617E8F"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "00D9B67D192E0367C803F39E1A7E82CA14A651350AAE617E8F"
					+ "01CE94335607C304AC29E7DEFBD9CA01F596F927224CDECF6C"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #6
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = FromHex("020A601907B8C953CA1481EB10512F78744A3205FD");
				byte[] S = Hex.Decode("85E25BFE5C86226CDB12016F7553F9D0E693A268");
				BigInteger n = FromHex("040000000000000000000292FE77E70C12A4234C33");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "03F0EBA16286A2D57EA0991168D4994637E8343E36"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "03F0EBA16286A2D57EA0991168D4994637E8343E36"
					+ "00D51FBC6C71A0094FA2CDD545B11C5C0C797324F1"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #7
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("04000000000000000000020108A2E0CC0D99F8A5EF");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "02FE13C0537BBC11ACAA07D793DE4E6D5E5C94EEE8"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "02FE13C0537BBC11ACAA07D793DE4E6D5E5C94EEE8"
					+ "0289070FB05D38FF58321F2E800536D538CCDAA3D9"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #8
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("07A11B09A76B562144418FF3FF8C2570B8");
				BigInteger b = FromHex("0217C05610884B63B9C6C7291678F9D341");
				byte[] S = Hex.Decode("4D696E676875615175985BD3ADBADA21B43A97E2");
				BigInteger n = FromHex("0400000000000000023123953A9464B54D");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "0081BAF91FDF9833C40F9C181343638399"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0081BAF91FDF9833C40F9C181343638399"
					+ "078C6E7EA38C001F73C8134B1B4EF9E150"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #9
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("0CCCCCCCCCCCCCCCCCCCCCCCCCCCCCAC4912D2D9DF903EF9888B8A0E4CFF", 16);
				BigInteger h = BigInteger.ValueOf(10);

				ECCurve c2m239v3 = new F2mCurve(
					239,
					36,
					new BigInteger("01238774666A67766D6676F778E676B66999176666E687666D8766C66A9F", 16),
					new BigInteger("6A941977BA9F6A435199ACFC51067ED587F519C5ECB541B8E44111DE1D40", 16),
					n, h);

				return new X9ECParameters(
					c2m239v3,
					c2m239v3.DecodePoint(
						Hex.Decode("0370F6E9D04D289C4E89913CE3530BFDE903977D42B146D539BF1BDE4E9C92")),
					n, h,
					null);
			}
Пример #10
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("1555555555555555555555555555553C6F2885259C31E3FCDF154624522D", 16);
				BigInteger h = BigInteger.ValueOf(6);

				ECCurve c2m239v2 = new F2mCurve(
					239,
					36,
					new BigInteger("4230017757A767FAE42398569B746325D45313AF0766266479B75654E65F", 16),
					new BigInteger("5037EA654196CFF0CD82B2C14A2FCF2E3FF8775285B545722F03EACDB74B", 16),
					n, h);

				return new X9ECParameters(
					c2m239v2,
					c2m239v2.DecodePoint(
						Hex.Decode("0228F9D04E900069C8DC47A08534FE76D2B900B7D7EF31F5709F200C4CA205")),
					n, h,
					null);
			}
Пример #11
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("2000000000000000000000000000000F4D42FFE1492A4993F1CAD666E447", 16);
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve c2m239v1 = new F2mCurve(
					239,
					36,
					new BigInteger("32010857077C5431123A46B808906756F543423E8D27877578125778AC76", 16),
					new BigInteger("790408F2EEDAF392B012EDEFB3392F30F4327C0CA3F31FC383C422AA8C16", 16),
					n, h);

				return new X9ECParameters(
					c2m239v1,
					c2m239v1.DecodePoint(
						Hex.Decode("0257927098FA932E7C0A96D3FD5B706EF7E5F5C156E16B7E7C86038552E91D")),
					n, h,
					null);
			}
Пример #12
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("0101BAF95C9723C57B6C21DA2EFF2D5ED588BDD5717E212F9D", 16);
				BigInteger h = BigInteger.ValueOf(0xFE48);

				ECCurve c2m208w1 = new F2mCurve(
					208,
					1, 2, 83,
					new BigInteger("0", 16),
					new BigInteger("00C8619ED45A62E6212E1160349E2BFA844439FAFC2A3FD1638F9E", 16),
					n, h);

				return new X9ECParameters(
					c2m208w1,
					c2m208w1.DecodePoint(
						Hex.Decode("0289FDFBE4ABE193DF9559ECF07AC0CE78554E2784EB8C1ED1A57A")),
					n, h,
					null);
			}
Пример #13
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("155555555555555555555555610C0B196812BFB6288A3EA3", 16);
				BigInteger h = BigInteger.ValueOf(6);

				ECCurve c2m191v3 = new F2mCurve(
					191,
					9,
					new BigInteger("6C01074756099122221056911C77D77E77A777E7E7E77FCB", 16),
					new BigInteger("71FE1AF926CF847989EFEF8DB459F66394D90F32AD3F15E8", 16),
					n, h);

				return new X9ECParameters(
					c2m191v3,
					c2m191v3.DecodePoint(
						Hex.Decode("03375D4CE24FDE434489DE8746E71786015009E66E38A926DD")),
					n, h,
					null);
			}
Пример #14
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("20000000000000000000000050508CB89F652824E06B8173", 16);
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve c2m191v2 = new F2mCurve(
					191,
					9,
					new BigInteger("401028774D7777C7B7666D1366EA432071274F89FF01E718", 16),
					new BigInteger("0620048D28BCBD03B6249C99182B7C8CD19700C362C46A01", 16),
					n, h);

				return new X9ECParameters(
					c2m191v2,
					c2m191v2.DecodePoint(
						Hex.Decode("023809B2B7CC1B28CC5A87926AAD83FD28789E81E2C9E3BF10")),
					n, h,
					null);
			}
Пример #15
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("40000000000000000000000004A20E90C39067C893BBB9A5", 16);
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve c2m191v1 = new F2mCurve(
					191,
					9,
					new BigInteger("2866537B676752636A68F56554E12640276B649EF7526267", 16),
					new BigInteger("2E45EF571F00786F67B0081B9495A3D95462F5DE0AA185EC", 16),
					n, h);

				return new X9ECParameters(
					c2m191v1,
					c2m191v1.DecodePoint(
						Hex.Decode("0236B3DAF8A23206F9C4F299D7B21A9C369137F2C84AE1AA0D")),
					n, h,
					Hex.Decode("4E13CA542744D696E67687561517552F279A8C84"));
			}
Пример #16
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("00689918DBEC7E5A0DD6DFC0AA55C7");
				BigInteger b = FromHex("0095E9A9EC9B297BD4BF36E059184F");
				byte[] S = Hex.Decode("10C0FB15760860DEF1EEF4D696E676875615175D");
				BigInteger n = FromHex("010000000000000108789B2496AF93");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "01A57A6A7B26CA5EF52FCDB8164797"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "01A57A6A7B26CA5EF52FCDB8164797"
					+ "00B3ADC94ED1FE674C06E695BABA1D"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #17
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("0100FAF51354E0E39E4892DF6E319C72C8161603FA45AA7B998A167B8F1E629521", 16);
				BigInteger h = BigInteger.ValueOf(0xFF06);

				ECCurve c2m272w1 = new F2mCurve(
					272,
					1, 3, 56,
					new BigInteger("0091A091F03B5FBA4AB2CCF49C4EDD220FB028712D42BE752B2C40094DBACDB586FB20", 16),
					new BigInteger("7167EFC92BB2E3CE7C8AAAFF34E12A9C557003D7C73A6FAF003F99F6CC8482E540F7", 16),
					n, h);

				return new X9ECParameters(
					c2m272w1,
					c2m272w1.DecodePoint(
						Hex.Decode("026108BABB2CEEBCF787058A056CBE0CFE622D7723A289E08A07AE13EF0D10D171DD8D")),
					n, h,
					null);
			}
Пример #18
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("03E5A88919D7CAFCBF415F07C2176573B2");
				BigInteger b = FromHex("04B8266A46C55657AC734CE38F018F2192");
				byte[] S = Hex.Decode("985BD3ADBAD4D696E676875615175A21B43A97E3");
				BigInteger n = FromHex("0400000000000000016954A233049BA98F");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "0356DCD8F2F95031AD652D23951BB366A8"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0356DCD8F2F95031AD652D23951BB366A8"
					+ "0648F06D867940A5366D9E265DE9EB240F"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #19
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("0101D556572AABAC800101D556572AABAC8001022D5C91DD173F8FB561DA6899164443051D", 16);
				BigInteger h = BigInteger.ValueOf(0xFE2E);

				ECCurve c2m304w1 = new F2mCurve(
					304,
					1, 2, 11,
					new BigInteger("00FD0D693149A118F651E6DCE6802085377E5F882D1B510B44160074C1288078365A0396C8E681", 16),
					new BigInteger("00BDDB97E555A50A908E43B01C798EA5DAA6788F1EA2794EFCF57166B8C14039601E55827340BE", 16),
					n, h);

				return new X9ECParameters(
					c2m304w1,
					c2m304w1.DecodePoint(
						Hex.Decode("02197B07845E9BE2D96ADB0F5F3C7F2CFFBD7A3EB8B6FEC35C7FD67F26DDF6285A644F740A2614")),
					n, h,
					null);
			}
Пример #20
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("07B6882CAAEFA84F9554FF8428BD88E246D2782AE2");
				BigInteger b = FromHex("0713612DCDDCB40AAB946BDA29CA91F73AF958AFD9");
				byte[] S = Hex.Decode("24B7B137C8A14D696E6768756151756FD0DA2E5C");
				BigInteger n = FromHex("03FFFFFFFFFFFFFFFFFFFF48AAB689C29CA710279B");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "0369979697AB43897789566789567F787A7876A654"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0369979697AB43897789566789567F787A7876A654"
					+ "00435EDB42EFAFB2989D51FEFCE3C80988F41FF883"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #21
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("01AF286BCA1AF286BCA1AF286BCA1AF286BCA1AF286BC9FB8F6B85C556892C20A7EB964FE7719E74F490758D3B", 16);
				BigInteger h = BigInteger.ValueOf(0x4C);

				ECCurve c2m359v1 = new F2mCurve(
					359,
					68,
					new BigInteger("5667676A654B20754F356EA92017D946567C46675556F19556A04616B567D223A5E05656FB549016A96656A557", 16),
					new BigInteger("2472E2D0197C49363F1FE7F5B6DB075D52B6947D135D8CA445805D39BC345626089687742B6329E70680231988", 16),
					n, h);

				return new X9ECParameters(
					c2m359v1,
					c2m359v1.DecodePoint(
						Hex.Decode("033C258EF3047767E7EDE0F1FDAA79DAEE3841366A132E163ACED4ED2401DF9C6BDCDE98E8E707C07A2239B1B097")),
					n, h,
					null);
			}
Пример #22
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("0017858FEB7A98975169E171F77B4087DE098AC8A911DF7B01");
				BigInteger b = FromHex("00FDFB49BFE6C3A89FACADAA7A1E5BBC7CC1C2E5D831478814");
				byte[] S = Hex.Decode("103FAEC74D696E676875615175777FC5B191EF30");
				BigInteger n = FromHex("01000000000000000000000000C7F34A778F443ACC920EBA49");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "01F481BC5F0FF84A74AD6CDF6FDEF4BF6179625372D8C0C5E1"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "01F481BC5F0FF84A74AD6CDF6FDEF4BF6179625372D8C0C5E1"
					+ "0025E399F2903712CCF3EA9E3A1AD17FB0B3201B6AF7CE1B05"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #23
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("010090512DA9AF72B08349D98A5DD4C7B0532ECA51CE03E2D10F3B7AC579BD87E909AE40A6F131E9CFCE5BD967", 16);
				BigInteger h = BigInteger.ValueOf(0xFF70);

				ECCurve c2m368w1 = new F2mCurve(
					368,
					1, 2, 85,
					new BigInteger("00E0D2EE25095206F5E2A4F9ED229F1F256E79A0E2B455970D8D0D865BD94778C576D62F0AB7519CCD2A1A906AE30D", 16),
					new BigInteger("00FC1217D4320A90452C760A58EDCD30C8DD069B3C34453837A34ED50CB54917E1C2112D84D164F444F8F74786046A", 16),
					n, h);

				return new X9ECParameters(
					c2m368w1,
					c2m368w1.DecodePoint(
						Hex.Decode("021085E2755381DCCCE3C1557AFA10C2F0C0C2825646C5B34A394CBCFA8BC16B22E7E789E927BE216F02E1FB136A5F")),
					n, h,
					null);
			}
Пример #24
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.Zero;
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("8000000000000000000000000000069D5BB915BCD46EFB1AD5F173ABDF");
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("02"
				//+ "017232BA853A7E731AF129F22FF4149563A419C26BF50A4C9D6EEFAD6126"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "017232BA853A7E731AF129F22FF4149563A419C26BF50A4C9D6EEFAD6126"
					+ "01DB537DECE819B7F70F555A67C427A8CD9BF18AEB9B56E0C11056FAE6A3"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #25
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger n = new BigInteger("0340340340340340340340340340340340340340340340340340340323C313FAB50589703B5EC68D3587FEC60D161CC149C1AD4A91", 16);
				BigInteger h = BigInteger.ValueOf(0x2760);

				ECCurve c2m431r1 = new F2mCurve(
					431,
					120,
					new BigInteger("1A827EF00DD6FC0E234CAF046C6A5D8A85395B236CC4AD2CF32A0CADBDC9DDF620B0EB9906D0957F6C6FEACD615468DF104DE296CD8F", 16),
					new BigInteger("10D9B4A3D9047D8B154359ABFB1B7F5485B04CEB868237DDC9DEDA982A679A5A919B626D4E50A8DD731B107A9962381FB5D807BF2618", 16),
					n, h);

				return new X9ECParameters(
					c2m431r1,
					c2m431r1.DecodePoint(
						Hex.Decode("02120FC05D3C67A99DE161D2F4092622FECA701BE4F50F4758714E8A87BBF2A658EF8C21E7C5EFE965361F6C2999C0C247B0DBD70CE6B7")),
					n, h,
					null);
			}
Пример #26
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.Zero;
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("2000000000000000000000000000005A79FEC67CB6E91F1C1DA800E478A5");
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "29A0B6A887A983E9730988A68727A8B2D126C44CC2CC7B2A6555193035DC"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "29A0B6A887A983E9730988A68727A8B2D126C44CC2CC7B2A6555193035DC"
					+ "76310804F12E549BDB011C103089E73510ACB275FC312A5DC6B76553F0CA"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #27
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.Zero;
				BigInteger b = BigInteger.ValueOf(1);
				byte[] S = null;
				BigInteger n = FromHex("020000000000000000000000000000000000000000000000000000000000000000000000131850E1F19A63E4B391A8DB917F4138B630D84BE5D639381E91DEB45CFE778F637C1001");
				BigInteger h = BigInteger.ValueOf(4);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("02"
				//+ "026EB7A859923FBC82189631F8103FE4AC9CA2970012D5D46024804801841CA44370958493B205E647DA304DB4CEB08CBBD1BA39494776FB988B47174DCA88C7E2945283A01C8972"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "026EB7A859923FBC82189631F8103FE4AC9CA2970012D5D46024804801841CA44370958493B205E647DA304DB4CEB08CBBD1BA39494776FB988B47174DCA88C7E2945283A01C8972"
					+ "0349DC807F4FBF374F4AEADE3BCA95314DD58CEC9F307A54FFC61EFC006D8A2C9D4979C0AC44AEA74FBEBBB9F772AEDCB620B01A7BA7AF1B320430C8591984F601CD4C143EF1C7A3"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #28
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = FromHex("027B680AC8B8596DA5A4AF8A19A0303FCA97FD7645309FA2A581485AF6263E313B79A2F5");
				byte[] S = Hex.Decode("77E2B07370EB0F832A6DD5B62DFC88CD06BB84BE");
				BigInteger n = FromHex("03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEF90399660FC938A90165B042A7CEFADB307");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "05F939258DB7DD90E1934F8C70B0DFEC2EED25B8557EAC9C80E2E198F8CDBECD86B12053"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "05F939258DB7DD90E1934F8C70B0DFEC2EED25B8557EAC9C80E2E198F8CDBECD86B12053"
					+ "03676854FE24141CB98FE6D4B20D02B4516FF702350EDDB0826779C813F0DF45BE8112F4"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #29
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = FromHex("02F40E7E2221F295DE297117B7F3D62F5C6A97FFCB8CEFF1CD6BA8CE4A9A18AD84FFABBD8EFA59332BE7AD6756A66E294AFD185A78FF12AA520E4DE739BACA0C7FFEFF7F2955727A");
				byte[] S = Hex.Decode("2AA058F73A0E33AB486B0F610410C53A7F132310");
				BigInteger n = FromHex("03FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE661CE18FF55987308059B186823851EC7DD9CA1161DE93D5174D66E8382E9BB2FE84E47");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "0303001D34B856296C16C0D40D3CD7750A93D1D2955FA80AA5F40FC8DB7B2ABDBDE53950F4C0D293CDD711A35B67FB1499AE60038614F1394ABFA3B4C850D927E1E7769C8EEC2D19"
					+ "037BF27342DA639B6DCCFFFEB73D69D78C6C27A6009CBBCA1980F8533921E8A684423E43BAB08A576291AF8F461BB2A8B3531D2F0485C19B16E2F1516E23DD3C1A4827AF1B8AC15B"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #30
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = BigInteger.ValueOf(1);
				BigInteger b = FromHex("0021A5C2C8EE9FEB5C4B9A753B7B476B7FD6422EF1F3DD674761FA99D6AC27C8A9A197B272822F6CD57A55AA4F50AE317B13545F");
				byte[] S = Hex.Decode("4099B5A457F9D69F79213D094C4BCD4D4262210B");
				BigInteger n = FromHex("010000000000000000000000000000000000000000000000000001E2AAD6A612F33307BE5FA47C3C9E052F838164CD37D9A21173");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "015D4860D088DDB3496B0C6064756260441CDE4AF1771D4DB01FFE5B34E59703DC255A868A1180515603AEAB60794E54BB7996A7"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "015D4860D088DDB3496B0C6064756260441CDE4AF1771D4DB01FFE5B34E59703DC255A868A1180515603AEAB60794E54BB7996A7"
					+ "0061B1CFAB6BE5F32BBFA78324ED106A7636B9C5A7BD198D0158AA4F5488D08F38514F1FDF4B4F40D2181B3681C364BA0273C706"));

				return new X9ECParameters(curve, G, n, h, S);
			}
Пример #31
0
			protected override X9ECParameters CreateParameters()
			{
				BigInteger a = FromHex("003088250CA6E7C7FE649CE85820F7");
				BigInteger b = FromHex("00E8BEE4D3E2260744188BE0E9C723");
				byte[] S = Hex.Decode("10E723AB14D696E6768756151756FEBF8FCB49A9");
				BigInteger n = FromHex("0100000000000000D9CCEC8A39E56F");
				BigInteger h = BigInteger.ValueOf(2);

				ECCurve curve = new F2mCurve(m, k, a, b, n, h);
				//ECPoint G = curve.DecodePoint(Hex.Decode("03"
				//+ "009D73616F35F4AB1407D73562C10F"));
				ECPoint G = curve.DecodePoint(Hex.Decode("04"
					+ "009D73616F35F4AB1407D73562C10F"
					+ "00A52830277958EE84D1315ED31886"));

				return new X9ECParameters(curve, G, n, h, S);
			}