Home
last modified time | relevance | path

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

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java47 Object ecParams = null; field in KeyPairGeneratorSpi.EC
100 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() local
101 if (ecParams == null) in initialize()
108 initialize(ecParams, random); in initialize()
134 this.ecParams = null; in initialize()
139 this.ecParams = params; in initialize()
144 this.ecParams = params; in initialize()
184 if (ecParams instanceof ECParameterSpec) in generateKeyPair()
186 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
192 else if (ecParams == null) in generateKeyPair()
[all …]
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java54 Object ecParams = null; field in KeyPairGeneratorSpi.EC
107 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() local
108 if (ecParams == null) in initialize()
115 initialize(ecParams, random); in initialize()
141 this.ecParams = null; in initialize()
146 this.ecParams = params; in initialize()
151 this.ecParams = params; in initialize()
191 if (ecParams instanceof ECParameterSpec) in generateKeyPair()
193 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
199 else if (ecParams == null) in generateKeyPair()
[all …]
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/ec/
DKeyPairGeneratorSpi.java54 Object ecParams = null; field in KeyPairGeneratorSpi.EC
107 … ECGenParameterSpec ecParams = (ECGenParameterSpec)ecParameters.get(Integers.valueOf(strength)); in initialize() local
108 if (ecParams == null) in initialize()
115 initialize(ecParams, random); in initialize()
141 this.ecParams = null; in initialize()
146 this.ecParams = params; in initialize()
151 this.ecParams = params; in initialize()
191 if (ecParams instanceof ECParameterSpec) in generateKeyPair()
193 ECParameterSpec p = (ECParameterSpec)ecParams; in generateKeyPair()
199 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.java174 void testKeyGeneration(ECParameterSpec ecParams, boolean isStandard) throws Exception { in testKeyGeneration() argument
178 keyGen.initialize(ecParams); in testKeyGeneration()
191 assertTrue(s.bitLength() >= EcUtil.fieldSizeInBits(ecParams.getCurve()) - 32); in testKeyGeneration()
DEcdsaTest.java734 public void testBias(String algorithm, String curve, ECParameterSpec ecParams) throws Exception { in testBias() argument
737 keyGen.initialize(ecParams); in testBias()
826 public void testTiming(String algorithm, String curve, ECParameterSpec ecParams) in testTiming() argument
/external/conscrypt/common/src/main/java/org/conscrypt/
DConscryptFileDescriptorSocket.java887 ECParameterSpec ecParams = null;
889 ecParams = ((ECKey) privateKey).getParams();
891 if (ecParams == null) {
893 ecParams =
897 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams);
DOpenSSLKey.java157 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly() argument
168 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(key, ecParams); in fromECPrivateKeyForTLSStackOnly()
DConscryptEngine.java326 ECParameterSpec ecParams = null; in setChannelIdPrivateKey() local
328 ecParams = ((ECKey) privateKey).getParams(); in setChannelIdPrivateKey()
330 if (ecParams == null) { in setChannelIdPrivateKey()
332 ecParams = in setChannelIdPrivateKey()
336 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DConscryptFileDescriptorSocket.java894 ECParameterSpec ecParams = null;
896 ecParams = ((ECKey) privateKey).getParams();
898 if (ecParams == null) {
900 ecParams =
904 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams);
DOpenSSLKey.java162 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly() argument
173 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(key, ecParams); in fromECPrivateKeyForTLSStackOnly()
DConscryptEngine.java326 ECParameterSpec ecParams = null; in setChannelIdPrivateKey() local
328 ecParams = ((ECKey) privateKey).getParams(); in setChannelIdPrivateKey()
330 if (ecParams == null) { in setChannelIdPrivateKey()
332 ecParams = in setChannelIdPrivateKey()
336 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()