本文整理了Java中org.bouncycastle.math.ec.ECCurve.cloneCurve()
方法的一些代码示例,展示了ECCurve.cloneCurve()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ECCurve.cloneCurve()
方法的具体详情如下:
包路径:org.bouncycastle.math.ec.ECCurve
类名称:ECCurve
方法名:cloneCurve
暂无
代码示例来源:origin: redfish64/TinyTravelTracker
public ECCurve create()
{
if (!supportsCoordinateSystem(coord))
{
throw new IllegalStateException("unsupported coordinate system");
}
ECCurve c = cloneCurve();
if (c == ECCurve.this)
{
throw new IllegalStateException("implementation returned current curve");
}
c.coord = coord;
c.endomorphism = endomorphism;
c.multiplier = multiplier;
return c;
}
}
代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on
public ECCurve create()
{
if (!supportsCoordinateSystem(coord))
{
throw new IllegalStateException("unsupported coordinate system");
}
ECCurve c = cloneCurve();
if (c == ECCurve.this)
{
throw new IllegalStateException("implementation returned current curve");
}
// NOTE: Synchronization added to keep FindBugs™ happy
synchronized (c)
{
c.coord = coord;
c.endomorphism = endomorphism;
c.multiplier = multiplier;
}
return c;
}
}
内容来源于网络,如有侵权,请联系作者删除!