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


Java SecP192K1Curve类代码示例

本文整理汇总了Java中org.bouncycastle.math.ec.custom.sec.SecP192K1Curve的典型用法代码示例。如果您正苦于以下问题:Java SecP192K1Curve类的具体用法?Java SecP192K1Curve怎么用?Java SecP192K1Curve使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


SecP192K1Curve类属于org.bouncycastle.math.ec.custom.sec包,在下文中一共展示了SecP192K1Curve类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createParameters

import org.bouncycastle.math.ec.custom.sec.SecP192K1Curve; //导入依赖的package包/类
protected X9ECParameters createParameters()
{
    byte[] S = null;
    GLVTypeBParameters glv = new GLVTypeBParameters(
        new BigInteger("bb85691939b869c1d087f601554b96b80cb4f55b35f433c2", 16),
        new BigInteger("3d84f26c12238d7b4f3d516613c1759033b1a5800175d0b1", 16),
        new BigInteger[]{
            new BigInteger("71169be7330b3038edb025f1", 16),
            new BigInteger("-b3fb3400dec5c4adceb8655c", 16) },
        new BigInteger[]{
            new BigInteger("12511cfe811d0f4e6bc688b4d", 16),
            new BigInteger("71169be7330b3038edb025f1", 16) },
        new BigInteger("71169be7330b3038edb025f1d0f9", 16),
        new BigInteger("b3fb3400dec5c4adceb8655d4c94", 16),
        208);
    ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
    X9ECPoint G = new X9ECPoint(curve, Hex.decode("04"
        + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"
        + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D"));
    return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:22,代码来源:CustomNamedCurves.java

示例2: createParameters

import org.bouncycastle.math.ec.custom.sec.SecP192K1Curve; //导入依赖的package包/类
protected X9ECParameters createParameters()
{
    byte[] S = null;
    GLVTypeBParameters glv = new GLVTypeBParameters(
        new BigInteger("bb85691939b869c1d087f601554b96b80cb4f55b35f433c2", 16),
        new BigInteger("3d84f26c12238d7b4f3d516613c1759033b1a5800175d0b1", 16),
        new BigInteger[]{
            new BigInteger("71169be7330b3038edb025f1", 16),
            new BigInteger("-b3fb3400dec5c4adceb8655c", 16) },
        new BigInteger[]{
            new BigInteger("12511cfe811d0f4e6bc688b4d", 16),
            new BigInteger("71169be7330b3038edb025f1", 16) },
        new BigInteger("71169be7330b3038edb025f1d0f9", 16),
        new BigInteger("b3fb3400dec5c4adceb8655d4c94", 16),
        208);
    ECCurve curve = configureCurveGLV(new SecP192K1Curve(), glv);
    ECPoint G = curve.decodePoint(Hex.decode("04"
        + "DB4FF10EC057E9AE26B07D0280B7F4341DA5D1B1EAE06C7D"
        + "9B2F2F6D9C5628A7844163D015BE86344082AA88D95E2F9D"));
    return new X9ECParameters(curve, G, curve.getOrder(), curve.getCofactor(), S);
}
 
开发者ID:redfish64,项目名称:TinyTravelTracker,代码行数:22,代码来源:CustomNamedCurves.java


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