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

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

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

ECCurve.checkPoint介绍

暂无

代码示例

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

public PreCompInfo getPreCompInfo(ECPoint point, String name)
{
  checkPoint(point);
  synchronized (point)
  {
    Hashtable table = point.preCompTable;
    return table == null ? null : (PreCompInfo)table.get(name);
  }
}

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

public PreCompInfo getPreCompInfo(ECPoint point, String name)
{
  checkPoint(point);
  Hashtable table;
  synchronized (point)
  {
    table = point.preCompTable;
  }
  if (null == table)
  {
    return null;
  }
  synchronized (table)
  {
    return (PreCompInfo)table.get(name);
  }
}

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

/**
 * Adds <code>PreCompInfo</code> for a point on this curve, under a given name. Used by
 * <code>ECMultiplier</code>s to save the precomputation for this <code>ECPoint</code> for use
 * by subsequent multiplication.
 * 
 * @param point
 *            The <code>ECPoint</code> to store precomputations for.
 * @param name
 *            A <code>String</code> used to index precomputations of different types.
 * @param preCompInfo
 *            The values precomputed by the <code>ECMultiplier</code>.
 */
public void setPreCompInfo(ECPoint point, String name, PreCompInfo preCompInfo)
{
  checkPoint(point);
  synchronized (point)
  {
    Hashtable table = point.preCompTable;
    if (null == table)
    {
      point.preCompTable = table = new Hashtable(4);
    }
    table.put(name, preCompInfo);
  }
}

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

checkPoint(point);

相关文章