gpt4 book ai didi

org.bouncycastle.asn1.x9.X962Parameters.isNamedCurve()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 03:39:05 27 4
gpt4 key购买 nike

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

X962Parameters.isNamedCurve介绍

暂无

代码示例

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

Set acceptableCurves = configuration.getAcceptableNamedCurves();
if (params.isNamedCurve())

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

@Override
protected void engineInit(byte[] bytes, String format)
  throws IOException
{
  if (isASN1FormatString(format))
  {
    X962Parameters params = X962Parameters.getInstance(bytes);
    ECCurve curve = EC5Util.getCurve(BouncyCastleProvider.CONFIGURATION, params);
    if (params.isNamedCurve())
    {
      ASN1ObjectIdentifier curveId = ASN1ObjectIdentifier.getInstance(params.getParameters());
      curveName = ECNamedCurveTable.getName(curveId);
      if (curveName == null)
      {
        curveName = curveId.getId();
      }
    }
    ecParameterSpec = EC5Util.convertToSpec(params, curve);
  }
  else
  {
    throw new IOException("Unknown encoded parameters format in AlgorithmParameters object: " + format);
  }
}

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

X9ECParameters curveParams;
if (params.isNamedCurve())

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

X9ECParameters curveParams;
if (params.isNamedCurve())

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

EllipticCurve ellipticCurve;
if (params.isNamedCurve())

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

public static ECDomainParameters getDomainParameters(
  ProviderConfiguration configuration,
  X962Parameters params)
{
  ECDomainParameters domainParameters;
  if (params.isNamedCurve())
  {
    ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
    X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
    if (ecP == null)
    {
      Map extraCurves = configuration.getAdditionalECParameters();
      ecP = (X9ECParameters)extraCurves.get(oid);
    }
    domainParameters = new ECNamedDomainParameters(oid, ecP.getCurve(), ecP.getG(), ecP.getN(), ecP.getH(), ecP.getSeed());
  }
  else if (params.isImplicitlyCA())
  {
    org.bouncycastle.jce.spec.ECParameterSpec iSpec = configuration.getEcImplicitlyCa();
    domainParameters = new ECDomainParameters(iSpec.getCurve(), iSpec.getG(), iSpec.getN(), iSpec.getH(), iSpec.getSeed());
  }
  else
  {
    X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
    domainParameters = new ECDomainParameters(ecP.getCurve(), ecP.getG(), ecP.getN(), ecP.getH(), ecP.getSeed());
  }
  return domainParameters;
}

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

ECDomainParameters dParams;
if (params.isNamedCurve())

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

EllipticCurve           ellipticCurve;
if (params.isNamedCurve())

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

if (params.isNamedCurve())

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

if (params.isNamedCurve())

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

if (params.isNamedCurve())

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

if (params.isNamedCurve())

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

ECDomainParameters dParams;
if (params.isNamedCurve())

代码示例来源:origin: coova/jradius

if (params.isNamedCurve())

代码示例来源:origin: com.hynnet/jradius-extended

ECDomainParameters  dParams = null;
if (params.isNamedCurve())

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

ECDomainParameters dParams;
if (params.isNamedCurve())

代码示例来源:origin: net.jradius/jradius-extended

ECDomainParameters  dParams = null;
if (params.isNamedCurve())

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

ECDomainParameters dParams;
if (params.isNamedCurve())
  if (params.isNamedCurve())

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com