gpt4 book ai didi

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

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

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

X962Parameters.getParameters介绍

暂无

代码示例

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());

代码示例来源: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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
if (ecP == null)
X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());

代码示例来源: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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());

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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
X9ECParameters x9 = X9ECParameters.getInstance(params.getParameters());
dParams = new ECDomainParameters(
  x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed());

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
X9ECParameters      ecP = X9ECParameters.getInstance(params.getParameters());
EllipticCurve       ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed());

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
ASN1Sequence seq = ASN1Sequence.getInstance(params.getParameters());
  X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
  EllipticCurve ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed());

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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
EllipticCurve ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed());

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

ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
X9ECParameters ecP = ECUtil.getNamedCurveByOid(oid);
X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
EllipticCurve ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed());

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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
x9 = X9ECParameters.getInstance(params.getParameters());
dParams = new ECDomainParameters(
  x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed());

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

if (params.isNamedCurve())
  ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier) params.getParameters();
  X9ECParameters      ecP = X962NamedCurves.getByOID(oid);
  X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
  dParams = new ECDomainParameters(
                ecP.getCurve(),

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

DERObjectIdentifier oid = (DERObjectIdentifier)params.getParameters();
X9ECParameters      ecP = X962NamedCurves.getByOID(oid);
      (ASN1Sequence)params.getParameters());
dParams = new ECDomainParameters(
              ecP.getCurve(),

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

DERObjectIdentifier oid = (DERObjectIdentifier)params.getParameters();
X9ECParameters      ecP = X962NamedCurves.getByOID(oid);
      (ASN1Sequence)params.getParameters());
dParams = new ECDomainParameters(
              ecP.getCurve(),

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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
x9 = X9ECParameters.getInstance(params.getParameters());
dParams = new ECDomainParameters(
     x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed());

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

ASN1ObjectIdentifier oid = (ASN1ObjectIdentifier)params.getParameters();
x9 = X9ECParameters.getInstance(params.getParameters());
dParams = new ECDomainParameters(
  x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed());
  ASN1ObjectIdentifier oid = ASN1ObjectIdentifier.getInstance(params.getParameters());
  X9ECParameters ecP = ECNamedCurveTable.getByOID(oid);
  if (ecP == null)
  X9ECParameters ecP = X9ECParameters.getInstance(params.getParameters());
  ecSpec = new ECGOST3410Parameters(new ECNamedDomainParameters(
    algOID,

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