Home
last modified time | relevance | path

Searched refs:ecParams (Results 1 – 8 of 8) sorted by relevance

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java45 Object ecParams = null; field in KeyPairGeneratorSpi.EC
98 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() local
99 if (ecParams == null) in initialize()
106 initialize(ecParams, random); in initialize()
132 this.ecParams = null; in initialize()
137 this.ecParams = params; in initialize()
142 this.ecParams = params; in initialize()
173 if (ecParams instanceof ECParameterSpec) in generateKeyPair()
175 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
181 else if (ecParams == null) in generateKeyPair()
[all …]
/external/wycheproof/java/com/google/security/wycheproof/
DEcUtil.java344 public static ECPoint getPoint(BigInteger x, boolean bit0, ECParameterSpec ecParams) in getPoint() argument
346 EllipticCurve ec = ecParams.getCurve(); in getPoint()
372 public static ECPoint decompressPoint(byte[] bytes, ECParameterSpec ecParams) in decompressPoint() argument
374 EllipticCurve ec = ecParams.getCurve(); in decompressPoint()
418 public static ECPublicKeySpec getWeakPublicKey(ECParameterSpec ecParams) in getWeakPublicKey() argument
420 EllipticCurve curve = ecParams.getCurve(); in getWeakPublicKey()
422 keyGen.initialize(ecParams); in getWeakPublicKey()
/external/wycheproof/java/com/google/security/wycheproof/testcases/
DEcKeyTest.java166 void testKeyGeneration(ECParameterSpec ecParams, boolean isStandard) throws Exception { in testKeyGeneration() argument
170 keyGen.initialize(ecParams); in testKeyGeneration()
183 assertTrue(s.bitLength() >= EcUtil.fieldSizeInBits(ecParams.getCurve()) - 32); in testKeyGeneration()
DEcdsaTest.java721 public void testBias(String algorithm, String curve, ECParameterSpec ecParams) throws Exception { in testBias() argument
724 keyGen.initialize(ecParams); in testBias()
813 public void testTiming(String algorithm, String curve, ECParameterSpec ecParams) in testTiming() argument
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptFileDescriptorSocket.java820 ECParameterSpec ecParams = null; in setChannelIdPrivateKey() local
822 ecParams = ((ECKey) privateKey).getParams(); in setChannelIdPrivateKey()
824 if (ecParams == null) { in setChannelIdPrivateKey()
826 ecParams = in setChannelIdPrivateKey()
830 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()
DOpenSSLKey.java134 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly() argument
145 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(key, ecParams); in fromECPrivateKeyForTLSStackOnly()
DConscryptEngine.java295 ECParameterSpec ecParams = null; in setChannelIdPrivateKey() local
297 ecParams = ((ECKey) privateKey).getParams(); in setChannelIdPrivateKey()
299 if (ecParams == null) { in setChannelIdPrivateKey()
301 ecParams = in setChannelIdPrivateKey()
305 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()
/external/bouncycastle/patches/
Dbcprov.patch2546 Object ecParams = null;
2566 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength));
2567 if (ecParams == null)