org.bouncycastle.math.ec.ECCurve.configure()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.bouncycastle.math.ec.ECCurve.configure()方法的一些代码示例,展示了ECCurve.configure()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ECCurve.configure()方法的具体详情如下:
包路径:org.bouncycastle.math.ec.ECCurve
类名称:ECCurve
方法名:configure

ECCurve.configure介绍

暂无

代码示例

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

private static ECCurve configureCurveGLV(ECCurve c, GLVTypeBParameters p)
{
  return c.configure().setEndomorphism(new GLVTypeBEndomorphism(c, p)).create();
}

代码示例来源:origin: redfish64/TinyTravelTracker

protected ECCurve configureCurve(ECCurve c, int coord)
  {
    if (c.getCoordinateSystem() == coord)
    {
      return c;
    }

    if (!c.supportsCoordinateSystem(coord))
    {
      throw new IllegalArgumentException("Coordinate system " + coord + " not supported by this curve");
    }

    return c.configure().setCoordinateSystem(coord).create();
  }
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

protected ECCurve configureCurve(ECCurve c, int coord)
  {
    if (c.getCoordinateSystem() == coord)
    {
      return c;
    }

    if (!c.supportsCoordinateSystem(coord))
    {
      throw new IllegalArgumentException("Coordinate system " + coord + " not supported by this curve");
    }

    return c.configure().setCoordinateSystem(coord).create();
  }
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

private static ECCurve configureCurveGLV(ECCurve c, GLVTypeBParameters p)
{
  return c.configure().setEndomorphism(new GLVTypeBEndomorphism(c, p)).create();
}

代码示例来源:origin: redfish64/TinyTravelTracker

private static ECCurve configureCurveGLV(ECCurve c, GLVTypeBParameters p)
{
  return c.configure().setEndomorphism(new GLVTypeBEndomorphism(c, p)).create();
}

代码示例来源:origin: redfish64/TinyTravelTracker

private static ECCurve configureCurveGLV(ECCurve c, GLVTypeBParameters p)
{
  return c.configure().setEndomorphism(new GLVTypeBEndomorphism(c, p)).create();
}

相关文章