/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator4Test.java | 20 import java.security.KeyPairGenerator; 34 KeyPairGenerator gen = KeyPairGenerator.getInstance("DSA"); in test_genKeyPair() 43 String alg = KeyPairGenerator.getInstance("DSA").getAlgorithm(); in test_getAlgorithm() 51 KeyPairGenerator.getInstance("DSA"); in test_getInstanceLjava_lang_String() 65 KeyPairGenerator.getInstance("DSA", providers[i].getName()); in test_getInstanceLjava_lang_StringLjava_lang_String() 71 KeyPairGenerator.getInstance("DSA", ""); in test_getInstanceLjava_lang_StringLjava_lang_String() 82 Provider p = KeyPairGenerator.getInstance("DSA").getProvider(); in test_getProvider() 90 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeI() 99 KeyPairGenerator keyPair = KeyPairGenerator.getInstance("DSA"); in test_initializeILjava_security_SecureRandom() 110 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); in test_initializeLjava_security_spec_AlgorithmParameterSpec() [all …]
|
D | KeyPairGenerator1Test.java | 29 import java.security.KeyPairGenerator; 76 protected KeyPairGenerator [] createKPGen() { in createKPGen() 81 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; in createKPGen() 83 kpg[0] = KeyPairGenerator.getInstance(validAlgName); in createKPGen() 84 kpg[1] = KeyPairGenerator.getInstance(validAlgName, validProvider); in createKPGen() 85 kpg[2] = KeyPairGenerator.getInstance(validAlgName, validProviderName); in createKPGen() 101 KeyPairGenerator.getInstance(null); in testKeyPairGenerator01() 108 KeyPairGenerator.getInstance(invalidValues[i]); in testKeyPairGenerator01() 125 KeyPairGenerator kpg; in testKeyPairGenerator02() 127 kpg = KeyPairGenerator.getInstance(algs[i]); in testKeyPairGenerator02() [all …]
|
D | KeyPairGenerator3Test.java | 28 import java.security.KeyPairGenerator; 62 protected KeyPairGenerator[] createKPGen() { in createKPGen() 68 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; in createKPGen() 70 kpg[0] = KeyPairGenerator in createKPGen() 72 kpg[1] = KeyPairGenerator.getInstance( in createKPGen() 74 kpg[2] = KeyPairGenerator.getInstance( in createKPGen() 96 KeyPairGenerator[] kpg = createKPGen(); in testGenKeyPair01() 122 KeyPairGenerator[] kpg = createKPGen(); in testGenKeyPair02() 147 assertTrue(kpg instanceof KeyPairGenerator); in testKeyPairGeneratorConst() 157 class MykeyPGen extends KeyPairGenerator {
|
D | KeyPairGenerator2Test.java | 27 import java.security.KeyPairGenerator; 88 private void checkResult(KeyPairGenerator keyPairGen, int mode) in checkResult() 187 KeyPairGenerator.getInstance(null); in GetInstance01() 194 KeyPairGenerator.getInstance(invalidValues[i]); in GetInstance01() 200 KeyPairGenerator kpG; in GetInstance01() 203 kpG = KeyPairGenerator.getInstance(alg); in GetInstance01() 226 KeyPairGenerator.getInstance(null, mProv.getName()); in GetInstance02() 233 KeyPairGenerator.getInstance(invalidValues[i], mProv.getName()); in GetInstance02() 243 KeyPairGenerator.getInstance(alg, prov); in GetInstance02() 253 KeyPairGenerator.getInstance(alg, invalidValues[j]); in GetInstance02() [all …]
|
D | KeyStorePrivateKeyEntryTest.java | 23 import java.security.KeyPairGenerator; 66 KeyPairGenerator keyPairGenerator = KeyPairGenerator in testGetCertificateChain()
|
D | KeyFactory2Test.java | 25 import java.security.KeyPairGenerator; 112 KeyPairGenerator keyGen = KeyPairGenerator.getInstance(keyfactAlgs[i]); in test_generatePrivateLjava_security_spec_KeySpec() 141 KeyPairGenerator keyGen = KeyPairGenerator in test_generatePublicLjava_security_spec_KeySpec() 232 KeyPairGenerator keyGen = KeyPairGenerator in test_getKeySpecLjava_security_KeyLjava_lang_Class() 289 KeyPairGenerator keyGen = KeyPairGenerator in test_translateKeyLjava_security_Key()
|
D | KeyStore3Test.java | 30 import java.security.KeyPairGenerator; 146 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); in setUp()
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 22 import java.security.KeyPairGenerator; 63 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey() 71 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey() 76 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyPairGenerator.java | 145 public abstract class KeyPairGenerator extends KeyPairGeneratorSpi { class 169 protected KeyPairGenerator(String algorithm) { in KeyPairGenerator() method in KeyPairGenerator 186 private static KeyPairGenerator getInstance(Instance instance, in getInstance() 188 KeyPairGenerator kpg; in getInstance() 189 if (instance.impl instanceof KeyPairGenerator) { in getInstance() 190 kpg = (KeyPairGenerator)instance.impl; in getInstance() 235 public static KeyPairGenerator getInstance(String algorithm) in getInstance() 251 if (instance.impl instanceof KeyPairGenerator) { in getInstance() 299 public static KeyPairGenerator getInstance(String algorithm, in getInstance() 338 public static KeyPairGenerator getInstance(String algorithm, in getInstance() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/security/ |
D | KeyPairGenerator.java | 31 public abstract class KeyPairGenerator extends java.security.KeyPairGeneratorSpi { class 33 protected KeyPairGenerator(java.lang.String algorithm) { in KeyPairGenerator() method in KeyPairGenerator 42 private static java.security.KeyPairGenerator getInstance( in getInstance() 47 public static java.security.KeyPairGenerator getInstance(java.lang.String algorithm) in getInstance() 52 public static java.security.KeyPairGenerator getInstance( in getInstance() 58 public static java.security.KeyPairGenerator getInstance( in getInstance() 108 private static final class Delegate extends java.security.KeyPairGenerator {
|
/libcore/luni/src/test/java/tests/security/interfaces/ |
D | DSAPublicKeyTest.java | 21 import java.security.KeyPairGenerator; 38 KeyPairGenerator keyGen = null; in test_getY() 44 keyGen = KeyPairGenerator.getInstance("DSA"); in test_getY() 53 keyGen = KeyPairGenerator.getInstance("DSA"); in test_getY()
|
D | DSAPrivateKeyTest.java | 21 import java.security.KeyPairGenerator; 34 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in test_getX()
|
D | DSAKeyTest.java | 21 import java.security.KeyPairGenerator; 38 KeyPairGenerator gen = KeyPairGenerator.getInstance("DSA"); in test_getParams()
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | OldKeyPairGeneratorTestDH.java | 19 import java.security.KeyPairGenerator; 26 KeyPairGenerator generator = KeyPairGenerator.getInstance("DH"); in testKeyPairGenerator()
|
D | OldDHTest.java | 21 import java.security.KeyPairGenerator; 31 KeyPairGenerator gen = null; in testDHGen() 33 gen = KeyPairGenerator.getInstance("DH"); in testDHGen()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | KeyPairGeneratorBenchmark.java | 22 import java.security.KeyPairGenerator; 38 private KeyPairGenerator generator; 52 this.generator = KeyPairGenerator.getInstance(generatorAlgorithm, provider); in setUp()
|
D | SignatureBenchmark.java | 22 import java.security.KeyPairGenerator; 74 KeyPairGenerator generator = KeyPairGenerator.getInstance(keyAlgorithm); in setUp()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/ |
D | DSAKeyPairGeneratorImpl.java | 21 import java.security.KeyPairGenerator; 31 private KeyPairGenerator dsaKeyPairGenerator = null; 39 dsaKeyPairGenerator = KeyPairGenerator.getInstance("DSA"); in DSAKeyPairGeneratorImpl()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherRSAThread.java | 20 import java.security.KeyPairGenerator; 36 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in crypt()
|
D | KeyAgreementThread.java | 22 import java.security.KeyPairGenerator; 38 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DH"); in KeyAgreementGen()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator3.java | 26 import java.security.KeyPairGenerator; 35 public class MyKeyPairGenerator3 extends KeyPairGenerator {
|
D | MyKeyPairGenerator2.java | 27 import java.security.KeyPairGenerator; 35 public class MyKeyPairGenerator2 extends KeyPairGenerator {
|
D | MyKeyPairGenerator1.java | 28 import java.security.KeyPairGenerator; 39 public class MyKeyPairGenerator1 extends KeyPairGenerator {
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EncodedKeySpec2Test.java | 25 import java.security.KeyPairGenerator; 39 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in test_getEncoded()
|
/libcore/luni/src/test/java/tests/targets/security/ |
D | KeyStoreTest.java | 23 import java.security.KeyPairGenerator; 112 KeyPairGenerator generator = null; in testKeyStoreCreate() 114 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() in testKeyStoreCreate()
|