Home
last modified time | relevance | path

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

123

/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.java400 public void initialize(int keysize) { in initialize() method in KeyPairGenerator
401 initialize(keysize, JCAUtil.getSecureRandom()); in initialize()
418 public void initialize(int keysize, SecureRandom random) { in initialize() method in KeyPairGenerator
459 public void initialize(AlgorithmParameterSpec params) in initialize() method in KeyPairGenerator
461 initialize(params, JCAUtil.getSecureRandom()); in initialize()
487 public void initialize(AlgorithmParameterSpec params, in initialize() method in KeyPairGenerator
663 spi.initialize(initKeySize, initRandom); in nextSpi()
665 spi.initialize(initParams, initRandom); in nextSpi()
691 public void initialize(int keysize, SecureRandom random) { in initialize() method in KeyPairGenerator.Delegate
693 spi.initialize(keysize, random); in initialize()
[all …]
DKeyPairGeneratorSpi.java68 public abstract void initialize(int keysize, SecureRandom random); in initialize() method in KeyPairGeneratorSpi
92 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()
/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.java91 public void initialize(DSAParams params, SecureRandom random) in initialize() method
119 public void initialize(int modlen, boolean genParams, SecureRandom random) in initialize() method
/libcore/ojluni/src/test/java/security/KeyAgreement/
DMultiThreadTest.java94 kpg.initialize(512); in genKeyGenerator()
97 kpg.initialize(256); in genKeyGenerator()
100 kpg.initialize(255); in genKeyGenerator()
103 kpg.initialize(448); in genKeyGenerator()
DNegativeTest.java132 kpg.initialize(512); in genKeyPair()
135 kpg.initialize(256); in genKeyPair()
138 kpg.initialize(255); in genKeyPair()
141 kpg.initialize(448); in genKeyPair()
259 kpg.initialize(spec); in testNamedParameter()
345 kpg.initialize(keySize); in startKeyAgreement()
DKeySpecTest.java107 kpg.initialize(512); in genKeyPair()
110 kpg.initialize(256); in genKeyPair()
113 kpg.initialize(255); in genKeyPair()
116 kpg.initialize(448); in genKeyPair()
/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/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/luni/src/test/java/libcore/java/security/
DOldKeyPairGeneratorTestDH.java28 generator.initialize(1024); in testKeyPairGenerator()
DOldDHTest.java45 gen.initialize(dhparameterspec); in testDHGen()
/libcore/ojluni/src/main/java/java/security/cert/
DCertPathHelperImpl.java52 static synchronized 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()

123