/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyPairGenerator3Test.java | 67 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; local 69 kpg[0] = KeyPairGenerator 71 kpg[1] = KeyPairGenerator.getInstance( 73 kpg[2] = KeyPairGenerator.getInstance( 75 return kpg; 95 KeyPairGenerator[] kpg = createKPGen(); local 96 assertNotNull("KeyPairGenerator objects were not created", kpg); 99 for (int i = 0; i < kpg.length; i++) { 100 kpg[i].initialize(512, rr); 101 kp = kpg[i].generateKeyPair() 121 KeyPairGenerator[] kpg = createKPGen(); local [all...] |
KeyPairGenerator1Test.java | 83 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; local 85 kpg[0] = KeyPairGenerator.getInstance(validAlgName); 86 kpg[1] = KeyPairGenerator.getInstance(validAlgName, validProvider); 87 kpg[2] = KeyPairGenerator.getInstance(validAlgName, validProviderName); 88 return kpg; 127 KeyPairGenerator kpg; local 129 kpg = KeyPairGenerator.getInstance(algs[i]); 130 assertEquals("Incorrect algorithm ", kpg.getAlgorithm().toUpperCase(), 228 KeyPairGenerator kpg; local 230 kpg = KeyPairGenerator.getInstance(algs[i], validProviderName) 298 KeyPairGenerator kpg; local 319 KeyPairGenerator[] kpg = createKPGen(); local 351 KeyPairGenerator[] kpg = createKPGen(); local [all...] |
KeyStoreTest.java | 77 KeyStore[] kpg = new KeyStore[3]; local 79 kpg[0] = KeyStore.getInstance(defaultType); 80 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 81 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); 82 return kpg;
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyPairGenerator3Test.java | 68 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; local 70 kpg[0] = KeyPairGenerator 72 kpg[1] = KeyPairGenerator.getInstance( 74 kpg[2] = KeyPairGenerator.getInstance( 76 return kpg; 96 KeyPairGenerator[] kpg = createKPGen(); local 97 assertNotNull("KeyPairGenerator objects were not created", kpg); 100 for (int i = 0; i < kpg.length; i++) { 101 kpg[i].initialize(512, rr); 102 kp = kpg[i].generateKeyPair() 122 KeyPairGenerator[] kpg = createKPGen(); local 141 MykeyPGen kpg; local [all...] |
KeyPairGenerator1Test.java | 81 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; local 83 kpg[0] = KeyPairGenerator.getInstance(validAlgName); 84 kpg[1] = KeyPairGenerator.getInstance(validAlgName, validProvider); 85 kpg[2] = KeyPairGenerator.getInstance(validAlgName, validProviderName); 86 return kpg; 125 KeyPairGenerator kpg; local 127 kpg = KeyPairGenerator.getInstance(algs[i]); 128 assertEquals("Incorrect algorithm ", kpg.getAlgorithm().toUpperCase(), 227 KeyPairGenerator kpg; local 229 kpg = KeyPairGenerator.getInstance(algs[i], validProviderName) 297 KeyPairGenerator kpg; local 318 KeyPairGenerator[] kpg = createKPGen(); local 350 KeyPairGenerator[] kpg = createKPGen(); local [all...] |
KeyStoreTest.java | 76 KeyStore[] kpg = new KeyStore[3]; local 78 kpg[0] = KeyStore.getInstance(defaultType); 79 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 80 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); 81 return kpg;
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyPairGeneratorTest.java | 115 private void test_KeyPairGenerator(KeyPairGenerator kpg) throws Exception { 117 test_KeyPair(kpg, kpg.genKeyPair()); 118 test_KeyPair(kpg, kpg.generateKeyPair()); 120 String algorithm = kpg.getAlgorithm(); 123 kpg.initialize(keySize); 124 test_KeyPair(kpg, kpg.genKeyPair()); 125 test_KeyPair(kpg, kpg.generateKeyPair()) 245 final KeyPairGenerator kpg = KeyPairGenerator.getInstance("DSA", p); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
CipherRSAThread.java | 36 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); local 37 kpg.initialize(getKeyLength()); 38 KeyPair kp = kpg.generateKeyPair();
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
KeyStore_Impl3Test.java | 61 KeyStore[] kpg = new KeyStore[3]; local 63 kpg[0] = KeyStore.getInstance(defaultType); 64 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 65 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); 66 return kpg;
|
KeyStore_Impl1Test.java | 69 KeyStore[] kpg = new KeyStore[3]; local 71 kpg[0] = KeyStore.getInstance(defaultType); 72 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); 73 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); 74 return kpg; [all...] |
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
HandshakeProtocolTest.java | 213 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); local 214 kpg.initialize(512); 215 PublicKey key = kpg.genKeyPair().getPublic();
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
ServerHandshakeImpl.java | 476 KeyPairGenerator kpg = null; local 483 kpg = KeyPairGenerator.getInstance("RSA"); 484 kpg.initialize(512); 492 kpg = KeyPairGenerator.getInstance("DH"); 496 kpg.initialize(spec); 502 if (kpg != null) { 507 kp = kpg.genKeyPair();
|
ClientHandshakeImpl.java | 446 KeyPairGenerator kpg = KeyPairGenerator.getInstance("DH"); local 459 kpg.initialize(spec); 461 KeyPair kp = kpg.generateKeyPair();
|
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 403 KeyPairGenerator kpg = KeyPairGenerator.getInstance(keyAlgorithm); local 404 kpg.initialize(keySize, new SecureRandom()); 406 KeyPair kp = kpg.generateKeyPair(); [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
EncryptedPrivateKeyInfoTest.java | 1552 KeyPairGenerator kpg = (provider == null) ? KeyPairGenerator local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
EncryptedPrivateKeyInfoTest.java | 1624 KeyPairGenerator kpg = (provider == null) ? KeyPairGenerator local [all...] |