Searched refs:kpg (Results 1 – 8 of 8) sorted by relevance
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyPairGenerator3Test.java | 68 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; in createKPGen() local 70 kpg[0] = KeyPairGenerator in createKPGen() 72 kpg[1] = KeyPairGenerator.getInstance( in createKPGen() 74 kpg[2] = KeyPairGenerator.getInstance( in createKPGen() 76 return kpg; in createKPGen() 96 KeyPairGenerator[] kpg = createKPGen(); in testGenKeyPair01() local 97 assertNotNull("KeyPairGenerator objects were not created", kpg); in testGenKeyPair01() 100 for (int i = 0; i < kpg.length; i++) { in testGenKeyPair01() 101 kpg[i].initialize(512, rr); in testGenKeyPair01() 102 kp = kpg[i].generateKeyPair(); in testGenKeyPair01() [all …]
|
D | KeyPairGenerator1Test.java | 81 KeyPairGenerator[] kpg = new KeyPairGenerator[3]; in createKPGen() local 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() 86 return kpg; in createKPGen() 125 KeyPairGenerator kpg; in testKeyPairGenerator02() local 127 kpg = KeyPairGenerator.getInstance(algs[i]); in testKeyPairGenerator02() 128 assertEquals("Incorrect algorithm ", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator02() 227 KeyPairGenerator kpg; in testKeyPairGenerator06() local 229 kpg = KeyPairGenerator.getInstance(algs[i], validProviderName); in testKeyPairGenerator06() [all …]
|
D | KeyStoreTest.java | 76 KeyStore[] kpg = new KeyStore[3]; in createKS() local 78 kpg[0] = KeyStore.getInstance(defaultType); in createKS() 79 kpg[1] = KeyStore.getInstance(defaultType, defaultProvider); in createKS() 80 kpg[2] = KeyStore.getInstance(defaultType, defaultProviderName); in createKS() 81 return kpg; in createKS()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherRSAThread.java | 36 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in crypt() local 37 kpg.initialize(getKeyLength()); in crypt() 38 KeyPair kp = kpg.generateKeyPair(); in crypt()
|
/libcore/ojluni/src/main/java/java/security/ |
D | KeyPairGenerator.java | 188 KeyPairGenerator kpg; in getInstance() local 190 kpg = (KeyPairGenerator)instance.impl; in getInstance() 193 kpg = new Delegate(spi, algorithm); in getInstance() 195 kpg.provider = instance.provider; in getInstance() 205 return kpg; in getInstance()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 591 KeyPairGenerator kpg = KeyPairGenerator.getInstance(keyAlgorithm); in createKeys() local 593 kpg.initialize(spec); in createKeys() 595 kpg.initialize(keySize); in createKeys() 600 KeyPair kp = kpg.generateKeyPair(); in createKeys()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | EncryptedPrivateKeyInfoTest.java | 1624 KeyPairGenerator kpg = (provider == null) ? KeyPairGenerator in TestDataGenerator() local 1627 KeyPair kp = kpg.genKeyPair(); in TestDataGenerator()
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 347 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in verify() local 348 KeyPair pair = kpg.generateKeyPair(); in verify()
|