Home
last modified time | relevance | path

Searched refs:getCurve (Results 1 – 25 of 49) sorted by relevance

12

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DEC5Util.java46 … customCurves.put(curveParams.getCurve(), CustomNamedCurves.getByName(name).getCurve()); in curveParams.getCurve()
60 public static ECCurve getCurve( in getCurve() method in EC5Util
80 curve = ecP.getCurve(); in getCurve()
89 curve = configuration.getEcImplicitlyCa().getCurve(); in getCurve()
95 curve = ecP.getCurve(); in getCurve()
115 …domainParameters = new ECDomainParameters(iSpec.getCurve(), iSpec.getG(), iSpec.getN(), iSpec.getH… in getDomainParameters()
193 …convertCurve(domainParameters.getCurve(), null), // JDK 1.5 has trouble with this if it's not nul… in convertToSpec()
286 ECCurve curve = convertCurve(ecSpec.getCurve()); in convertSpec()
293 ecSpec.getCurve().getSeed()); in convertSpec()
301 return convertPoint(convertCurve(ecSpec.getCurve()), point, withCompression); in convertPoint()
DECUtil.java127 …domainParameters = new ECNamedDomainParameters(nameOid, nParams.getCurve(), nParams.getG(), nParam… in getDomainParameters()
133 …domainParameters = new ECDomainParameters(iSpec.getCurve(), iSpec.getG(), iSpec.getN(), iSpec.getH… in getDomainParameters()
137 …domainParameters = new ECDomainParameters(params.getCurve(), params.getG(), params.getN(), params.… in getDomainParameters()
159 …domainParameters = new ECNamedDomainParameters(oid, ecP.getCurve(), ecP.getG(), ecP.getN(), ecP.ge… in getDomainParameters()
165 …domainParameters = new ECDomainParameters(iSpec.getCurve(), iSpec.getG(), iSpec.getN(), iSpec.getH… in getDomainParameters()
171 …domainParameters = new ECDomainParameters(ecP.getCurve(), ecP.getG(), ecP.getN(), ecP.getH(), ecP.… in getDomainParameters()
188 … new ECDomainParameters(s.getCurve(), s.getG(), s.getN(), s.getH(), s.getSeed())); in generatePublicKeyParameter()
196 … new ECDomainParameters(s.getCurve(), s.getG(), s.getN(), s.getH(), s.getSeed())); in generatePublicKeyParameter()
242 … new ECDomainParameters(s.getCurve(), s.getG(), s.getN(), s.getH(), s.getSeed())); in generatePrivateKeyParameter()
250 … new ECDomainParameters(s.getCurve(), s.getG(), s.getN(), s.getH(), s.getSeed())); in generatePrivateKeyParameter()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
DJCEECPublicKey.java93 ECCurve curve = spec.getParams().getCurve(); in JCEECPublicKey()
100 if (q.getCurve() == null) in JCEECPublicKey()
104 …q = s.getCurve().createPoint(q.getAffineXCoord().toBigInteger(), q.getAffineYCoord().toBigInteger(… in JCEECPublicKey()
122 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in JCEECPublicKey()
144 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in JCEECPublicKey()
150 EllipticCurve ellipticCurve = EC5Util.convertCurve(spec.getCurve(), spec.getSeed()); in JCEECPublicKey()
255 curve = ecP.getCurve(); in populateFromPubKeyInfo()
270 curve = BouncyCastleProvider.CONFIGURATION.getEcImplicitlyCa().getCurve(); in populateFromPubKeyInfo()
276 curve = ecP.getCurve(); in populateFromPubKeyInfo()
397 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getEncoded()
[all …]
DJCEECPrivateKey.java77 ECCurve curve = spec.getParams().getCurve(); in JCEECPrivateKey()
125 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in JCEECPrivateKey()
156 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in JCEECPrivateKey()
168 EllipticCurve ellipticCurve = EC5Util.convertCurve(spec.getCurve(), spec.getSeed()); in JCEECPrivateKey()
226 EllipticCurve ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed()); in populateFromPrivKeyInfo()
245 EllipticCurve ellipticCurve = EC5Util.convertCurve(ecP.getCurve(), ecP.getSeed()); in populateFromPrivKeyInfo()
312 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getEncoded()
319 ecSpec.getCurve().getSeed()); in getEncoded()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/spec/
DECParameterSpec.java64 public ECCurve getCurve() in getCurve() method in ECParameterSpec
114 return this.getCurve().equals(other.getCurve()) && this.getG().equals(other.getG()); in equals()
119 return this.getCurve().hashCode() ^ this.getG().hashCode(); in hashCode()
DECPublicKeySpec.java25 if (q.getCurve() != null) in ECPublicKeySpec()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
DECPoint.java80 public ECCurve getCurve() in getCurve() method in ECPoint
282 …return this.getCurve().createRawPoint(getRawXCoord().multiply(sx), getRawYCoord().multiply(sy), th… in createScaledPoint()
307 ECCurve curve = getCurve(); in isValid()
328 …: getCurve().createRawPoint(getRawXCoord().multiply(scale), getRawYCoord(), getRawZCoords(), thi… in scaleX()
335 …: getCurve().createRawPoint(getRawXCoord(), getRawYCoord().multiply(scale), getRawZCoords(), thi… in scaleY()
345 ECCurve c1 = this.getCurve(), c2 = other.getCurve(); in equals()
404 ECCurve c = this.getCurve(); in hashCode()
525 return this.getCurve().getMultiplier().multiply(this, k); in multiply()
678 ECCurve curve = this.getCurve(); in add()
889 ECCurve curve = this.getCurve(); in twice()
[all …]
DECAlgorithms.java52 ECCurve c = p.getCurve(); in sumOfMultiplies()
73 ECCurve cp = P.getCurve(); in sumOfTwoMultiplies()
118 ECCurve cp = P.getCurve(); in shamirsTrick()
126 ECCurve cp = p.getCurve(); in importPoint()
190 ECPoint q = p.getCurve().getInfinity(); in referenceMultiply()
223 ECCurve curve = P.getCurve(); in implShamirsTrickJsf()
311 ECCurve curve = preCompP[0].getCurve();
380 BigInteger n = ps[0].getCurve().getOrder();
445 ECCurve curve = infos[0].getPreComp()[0].getCurve();
DWTauNafMultiplier.java31 ECCurve.AbstractF2m curve = (ECCurve.AbstractF2m)p.getCurve(); in multiplyPositive()
76 ECCurve.AbstractF2m curve = (ECCurve.AbstractF2m)p.getCurve(); in multiplyFromWTnaf()
102 ECPoint.AbstractF2m q = (ECPoint.AbstractF2m) p.getCurve().getInfinity(); in multiplyFromWTnaf()
DGLVMultiplier.java25 if (!curve.equals(p.getCurve())) in multiplyPositive()
30 BigInteger n = p.getCurve().getOrder(); in multiplyPositive()
DAbstractECMultiplier.java12 return p.getCurve().getInfinity(); in multiply()
DWNafUtil.java302 return getWNafPreCompInfo(p.getCurve().getPreCompInfo(p, PRECOMP_NAME)); in getWNafPreCompInfo()
349 ECCurve c = p.getCurve(); in mapPointWithPrecomp()
387 ECCurve c = p.getCurve(); in precompute()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcKeyTest.java157 assertEquals(priv.getParams().getCurve(), decoded.getParams().getCurve()); in testEncodedPrivateKey()
183 assertTrue(s.bitLength() >= EcUtil.fieldSizeInBits(ecParams.getCurve()) - 32); in testKeyGeneration()
209 int keySize = EcUtil.fieldSizeInBits(pub.getParams().getCurve()); in testDefaultKeyGeneration()
DEcdhTest.java869 assertEquals(params1.getCurve(), params2.getCurve()); in testDecode()
1008 EllipticCurve pubCurve = pub.getParams().getCurve(); in testDistinctCurves()
1009 EllipticCurve privCurve = priv.getParams().getCurve(); in testDistinctCurves()
1073 spec.getCurve(), spec.getGenerator(), spec.getOrder().shiftRight(16), 1); in testWrongOrder()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DBCECPublicKey.java77 ECCurve curve = spec.getParams().getCurve(); in BCECPublicKey()
89 …this.ecPublicKey = new ECPublicKeyParameters(s.getCurve().createPoint(spec.getQ().getAffineXCoord(… in BCECPublicKey()
109 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in BCECPublicKey()
133 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in BCECPublicKey()
139 EllipticCurve ellipticCurve = EC5Util.convertCurve(spec.getCurve(), spec.getSeed()); in BCECPublicKey()
195 ECCurve curve = EC5Util.getCurve(configuration, params); in populateFromPubKeyInfo()
DBCECPrivateKey.java76 ECCurve curve = spec.getParams().getCurve(); in BCECPrivateKey()
131 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in BCECPrivateKey()
164 EllipticCurve ellipticCurve = EC5Util.convertCurve(dp.getCurve(), dp.getSeed()); in BCECPrivateKey()
176 EllipticCurve ellipticCurve = EC5Util.convertCurve(spec.getCurve(), spec.getSeed()); in BCECPrivateKey()
218 ECCurve curve = EC5Util.getCurve(configuration, params); in populateFromPrivKeyInfo()
DECUtils.java82 ECCurve curve = EC5Util.convertCurve(ecSpec.getCurve()); in getDomainParametersFromName()
89 ecSpec.getCurve().getSeed()); in getDomainParametersFromName()
DKeyPairGeneratorSpi.java198 …return new ECKeyGenerationParameters(new ECDomainParameters(p.getCurve(), p.getG(), p.getN(), p.ge… in createKeyGenParamsBC()
203 ECCurve curve = EC5Util.convertCurve(p.getCurve()); in createKeyGenParamsJCE()
244 … return new ECNamedCurveSpec(curveName, p.getCurve(), p.getG(), p.getN(), p.getH(), seed); in createNamedCurveSpec()
DAlgorithmParametersSpi.java80 ECCurve curve = EC5Util.getCurve(BouncyCastleProvider.CONFIGURATION, params); in engineInit()
161 ecSpec.getCurve(), in engineGetEncoded()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/agreement/
DECDHBasicAgreement.java41 return (key.getParameters().getCurve().getFieldSize() + 7) / 8; in getFieldSize()
49 ECCurve myCurve = key.getParameters().getCurve(); in calculateAgreement()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/
DPublicKeyFactory.java182 oid, x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed()); in createKey()
188 x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed()); in createKey()
192 X9ECPoint derQ = new X9ECPoint(x9.getCurve(), key); in createKey()
DPrivateKeyFactory.java146 oid, x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed()); in createKey()
152 x9.getCurve(), x9.getG(), x9.getN(), x9.getH(), x9.getSeed()); in createKey()
/external/wycheproof/java/com/google/security/wycheproof/
DEcUtil.java334 checkPointOnCurve(key.getW(), key.getParams().getCurve()); in checkPublicKey()
346 EllipticCurve ec = ecParams.getCurve(); in getPoint()
374 EllipticCurve ec = ecParams.getCurve(); in decompressPoint()
420 EllipticCurve curve = ecParams.getCurve(); in getWeakPublicKey()
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPublicKey.java138 return spec.getCurve().equals(otherSpec.getCurve()) in equals()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x9/
DX9ECParameters.java47 this.curve = x9c.getCurve(); in X9ECParameters()
159 public ECCurve getCurve() in getCurve() method in X9ECParameters

12