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


Java ECCurve.decodePoint方法代码示例

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


在下文中一共展示了ECCurve.decodePoint方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createParameters

import org.bouncycastle.math.ec.ECCurve; //导入方法依赖的package包/类
protected X9ECParameters createParameters()
{
    BigInteger c2m239v3n = new BigInteger("0CCCCCCCCCCCCCCCCCCCCCCCCCCCCCAC4912D2D9DF903EF9888B8A0E4CFF", 16);
    BigInteger c2m239v3h = BigInteger.valueOf(10);

    ECCurve c2m239v3 = new ECCurve.F2m(
        239,
        36,
        new BigInteger("01238774666A67766D6676F778E676B66999176666E687666D8766C66A9F", 16),
        new BigInteger("6A941977BA9F6A435199ACFC51067ED587F519C5ECB541B8E44111DE1D40", 16),
        c2m239v3n, c2m239v3h);

    return new X9ECParameters(
        c2m239v3,
        c2m239v3.decodePoint(
            Hex.decode("0370F6E9D04D289C4E89913CE3530BFDE903977D42B146D539BF1BDE4E9C92")),
        c2m239v3n, c2m239v3h,
        null);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:20,代码来源:X962NamedCurves.java

示例2: createParameters

import org.bouncycastle.math.ec.ECCurve; //导入方法依赖的package包/类
protected X9ECParameters createParameters()
{
    int m = 233;
    int k = 74;

    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 ECCurve.F2m(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);
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:21,代码来源:SECNamedCurves.java

示例3: createParameters

import org.bouncycastle.math.ec.ECCurve; //导入方法依赖的package包/类
protected X9ECParameters createParameters()
{
    ECCurve curve = new ECCurve.Fp(
        new BigInteger("A9FB57DBA1EEA9BC3E660A909D838D726E3BF623D52620282013481D1F6E5377", 16), // q
        new BigInteger("7D5A0975FC2C3057EEF67530417AFFE7FB8055C126DC5C6CE94A4B44F330B5D9", 16), // a
        new BigInteger("26DC5C6CE94A4B44F330B5D9BBD77CBF958416295CF7E1CE6BCCDC18FF8C07B6", 16)); // b

    return new X9ECParameters(
        curve,
        curve.decodePoint(Hex.decode("048BD2AEB9CB7E57CB2C4B482FFC81B7AFB9DE27E1E3BD23C23A4453BD9ACE3262547EF835C3DAC4FD97F8461A14611DC9C27745132DED8E545C1D54C72F046997")), // G
        new BigInteger("A9FB57DBA1EEA9BC3E660A909D838D718C397AA3B561A6F7901E0E82974856A7", 16), //n
        new BigInteger("01", 16)); // h
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:14,代码来源:TeleTrusTNamedCurves.java


注:本文中的org.bouncycastle.math.ec.ECCurve.decodePoint方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。