/libcore/luni/src/test/java/libcore/java/security/ |
KeyPairGeneratorTest.java | 102 private void test_KeyPairGenerator(KeyPairGenerator kpg) throws Exception { 104 test_KeyPair(kpg, kpg.genKeyPair()); 105 test_KeyPair(kpg, kpg.generateKeyPair()); 107 String algorithm = kpg.getAlgorithm(); 110 kpg.initialize(keySize); 111 test_KeyPair(kpg, kpg.genKeyPair()); 112 test_KeyPair(kpg, kpg.generateKeyPair()) [all...] |
/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/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 | 468 KeyPairGenerator kpg = null; local 475 kpg = KeyPairGenerator.getInstance("RSA"); 476 kpg.initialize(512); 484 kpg = KeyPairGenerator.getInstance("DH"); 488 kpg.initialize(spec); 494 if (kpg != null) { 499 kp = kpg.genKeyPair();
|
ClientHandshakeImpl.java | 445 KeyPairGenerator kpg = KeyPairGenerator.getInstance("DH"); local 458 kpg.initialize(spec); 460 KeyPair kp = kpg.generateKeyPair();
|
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 402 KeyPairGenerator kpg = KeyPairGenerator.getInstance(keyAlgorithm); local 403 kpg.initialize(keySize, new SecureRandom()); 405 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...] |