當前位置: 首頁>>代碼示例>>C#>>正文


C# EC.F2mCurve類代碼示例

本文整理匯總了C#中Org.BouncyCastle.Math.EC.F2mCurve的典型用法代碼示例。如果您正苦於以下問題:C# F2mCurve類的具體用法?C# F2mCurve怎麽用?C# F2mCurve使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


F2mCurve類屬於Org.BouncyCastle.Math.EC命名空間,在下文中一共展示了F2mCurve類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: doTestPointCompression

		private void doTestPointCompression() 
		{
			ECCurve curve = new F2mCurve(m, k1, k2, k3, a, b);
			curve.DecodePoint(enc);

			int[] ks = new int[3];
			ks[0] = k3;
			ks[1] = k2;
			ks[2] = k1;
		}
開發者ID:KimikoMuffin,項目名稱:bc-csharp,代碼行數:10,代碼來源:ECEncodingTest.cs

示例2: CreateParameters

            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);
            }
開發者ID:kylewlacy,項目名稱:bouncycastle-pcl,代碼行數:19,代碼來源:X962NamedCurves.cs

示例3: CreateParameters

            protected override X9ECParameters CreateParameters()
            {
                BigInteger a = BigInteger.One;
                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);
            }
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:17,代碼來源:SECNamedCurves.cs


注:本文中的Org.BouncyCastle.Math.EC.F2mCurve類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。