Home
last modified time | relevance | path

Searched refs:initialize (Results 1 – 25 of 44) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator2Test.java94 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
98 keyPairGen.initialize(1000, new SecureRandom()); in checkResult()
100 keyPairGen.initialize(-1024, new SecureRandom()); in checkResult()
107 keyPairGen.initialize(100, null); in checkResult()
118 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
122 keyPairGen.initialize(1000, new SecureRandom()); in checkResult()
124 keyPairGen.initialize(63, new SecureRandom()); in checkResult()
128 keyPairGen.initialize(100, null); in checkResult()
133 keyPairGen.initialize(pp, new SecureRandom()); in checkResult()
134 keyPairGen.initialize(pp); in checkResult()
[all …]
DKeyPairGenerator4Test.java35 gen.initialize(1024); in test_genKeyPair()
91 keyPair.initialize(1024); in test_initializeI()
100 keyPair.initialize(1024, new SecureRandom()); in test_initializeILjava_security_SecureRandom()
111 keyPairGenerator.initialize(1024); in test_initializeLjava_security_spec_AlgorithmParameterSpec()
117 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpec()
129 keyPairGenerator.initialize(1024); in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
135 keyPair.initialize(new DSAParameterSpec(params.getP(), params.getQ(), in test_initializeLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
DKeyPairGeneratorSpiTest.java53 keyPairGen.initialize(pp, null); in testKeyPairGeneratorSpi01()
58 keyPairGen.initialize(pp, new SecureRandom()); in testKeyPairGeneratorSpi01()
59 keyPairGen.initialize(1024, new SecureRandom()); in testKeyPairGeneratorSpi01()
61 keyPairGen.initialize(-1024, new SecureRandom()); in testKeyPairGeneratorSpi01()
66 keyPairGen.initialize(1024, null); in testKeyPairGeneratorSpi01()
DKeyPairGenerator1Test.java322 kpg[i].initialize(512); in testKeyPairGenerator10()
359 kpg[i].initialize(keys[j]); in testKeyPairGenerator11()
360 kpg[i].initialize(keys[j], random); in testKeyPairGenerator11()
366 kpg[i].initialize(aps); in testKeyPairGenerator11()
367 kpg[i].initialize(aps, random); in testKeyPairGenerator11()
398 mKPG.initialize(keys[i]); in testKeyPairGenerator12()
404 mKPG.initialize(keys[i], random); in testKeyPairGenerator12()
411 mKPG.initialize(100, null); in testKeyPairGenerator12()
416 mKPG.initialize(100, random); in testKeyPairGenerator12()
422 mKPG.initialize(null, random); in testKeyPairGenerator12()
[all …]
DKeyFactory2Test.java115 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePrivateLjava_security_spec_KeySpec()
145 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_generatePublicLjava_security_spec_KeySpec()
237 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
294 keyGen.initialize(StandardNames.getMinimumKeySize(keyfactAlgs[i]), random); in test_translateKeyLjava_security_Key()
/libcore/ojluni/src/main/java/java/security/
DKeyPairGenerator.java377 public void initialize(int keysize) { in initialize() method in KeyPairGenerator
378 initialize(keysize, JCAUtil.getSecureRandom()); in initialize()
395 public void initialize(int keysize, SecureRandom random) { in initialize() method in KeyPairGenerator
436 public void initialize(AlgorithmParameterSpec params) in initialize() method in KeyPairGenerator
438 initialize(params, JCAUtil.getSecureRandom()); in initialize()
464 public void initialize(AlgorithmParameterSpec params, in initialize() method in KeyPairGenerator
640 spi.initialize(initKeySize, initRandom); in nextSpi()
642 spi.initialize(initParams, initRandom); in nextSpi()
668 public void initialize(int keysize, SecureRandom random) { in initialize() method in KeyPairGenerator.Delegate
670 spi.initialize(keysize, random); in initialize()
[all …]
DKeyPairGeneratorSpi.java67 public abstract void initialize(int keysize, SecureRandom random); in initialize() method in KeyPairGeneratorSpi
91 public void initialize(AlgorithmParameterSpec params, in initialize() method in KeyPairGeneratorSpi
/libcore/luni/src/test/java/tests/security/interfaces/
DDSAKeyPairGeneratorTest.java58 dsa.initialize(dsaParams, random); in test_DSAKeyPairGenerator01()
64 dsa.initialize(dsaParams, null); in test_DSAKeyPairGenerator01()
72 dsa.initialize(null, random); in test_DSAKeyPairGenerator01()
98 dsa.initialize(520, false, random); in test_DSAKeyPairGenerator02()
112 dsa.initialize(invalidLen[i], true, random); in test_DSAKeyPairGenerator02()
127 dsa.initialize(520, true, random); in test_DSAKeyPairGenerator02()
134 dsa.initialize(520, false, random); in test_DSAKeyPairGenerator02()
DDSAPrivateKeyTest.java35 keyGen.initialize(new DSAParameterSpec(Util.P, Util.Q, Util.G), new SecureRandom()); in test_getX()
DDSAKeyTest.java39 gen.initialize((DSAParameterSpec) param); in test_getParams()
DDSAPublicKeyTest.java45 keyGen.initialize(new DSAParameterSpec(Util.P, Util.Q, Util.G), new SecureRandom()); in test_getY()
/libcore/ojluni/annotations/hiddenapi/java/security/
DKeyPairGenerator.java72 public void initialize(int keysize) { in initialize() method in KeyPairGenerator
76 public void initialize(int keysize, java.security.SecureRandom random) { in initialize() method in KeyPairGenerator
80 public void initialize(java.security.spec.AlgorithmParameterSpec params) in initialize() method in KeyPairGenerator
85 public void initialize( in initialize() method in KeyPairGenerator
132 public void initialize(int keysize, java.security.SecureRandom random) { in initialize() method in KeyPairGenerator.Delegate
136 public void initialize( in initialize() method in KeyPairGenerator.Delegate
/libcore/ojluni/src/main/java/java/security/interfaces/
DDSAKeyPairGenerator.java86 public void initialize(DSAParams params, SecureRandom random) in initialize() method
115 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize() method
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyPairGeneratorSpi.java39 public void initialize(int keysize, SecureRandom random) { in initialize() method in MyKeyPairGeneratorSpi
53 public void initialize(AlgorithmParameterSpec params, SecureRandom random) in initialize() method in MyKeyPairGeneratorSpi
DMyKeyPairGenerator1.java62 public void initialize(int keysize, SecureRandom random) { in initialize() method in MyKeyPairGenerator1
82 public void initialize(AlgorithmParameterSpec param, SecureRandom random) in initialize() method in MyKeyPairGenerator1
DMyKeyPairGenerator2.java56 public void initialize(int keysize, SecureRandom random) { in initialize() method in MyKeyPairGenerator2
/libcore/support/src/test/java/libcore/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java64 keyPairGenerator.initialize(keyLengthBits); in getPrivateKey()
72 keyPairGenerator.initialize(new DSAParameterSpec( in getPrivateKey()
77 keyPairGenerator.initialize(((ECPrivateKey) originalPrivateKey).getParams()); in getPrivateKey()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/
DDSAKeyPairGeneratorImpl.java46 public void initialize(DSAParams params, SecureRandom random) in initialize() method in DSAKeyPairGeneratorImpl
59 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize() method in DSAKeyPairGeneratorImpl
/libcore/luni/src/test/java/libcore/java/security/
DOldKeyPairGeneratorTestDH.java28 generator.initialize(1024); in testKeyPairGenerator()
DOldDHTest.java45 gen.initialize(dhparameterspec); in testDHGen()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DUnixSelectorTest.java38 public void initialize() throws Exception { in initialize() method in UnixSelectorTest.Server
71 server.initialize(); in testSelectorAcceptAndRead()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathHelperImpl.java52 synchronized static void initialize() { in initialize() method in CertPathHelperImpl
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/
DTestUtils.java152 public static KeyStore getKeyStore(boolean initialize, in getKeyStore() argument
157 if (initialize) { in getKeyStore()
166 if (initialize && bis != null) { in getKeyStore()
/libcore/benchmarks/src/benchmarks/regression/
DKeyPairGeneratorBenchmark.java54 this.generator.initialize(1024); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherRSAThread.java37 kpg.initialize(getKeyLength()); in crypt()

12