当前位置: 首页>>代码示例>>C#>>正文


C# F2mCurve.DecodePoint方法代码示例

本文整理汇总了C#中Org.BouncyCastle.Math.EC.F2mCurve.DecodePoint方法的典型用法代码示例。如果您正苦于以下问题:C# F2mCurve.DecodePoint方法的具体用法?C# F2mCurve.DecodePoint怎么用?C# F2mCurve.DecodePoint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Org.BouncyCastle.Math.EC.F2mCurve的用法示例。


在下文中一共展示了F2mCurve.DecodePoint方法的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.DecodePoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。