/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/ojluni/src/test/java/security/KeyAgreement/ |
D | MultiThreadTest.java | 58 KeyPairGenerator kpg = genKeyGenerator("BC","DiffieHellman", in testDHKeySpecs() local 60 new MultiThreadTest().runTest("BC", "DiffieHellman", kpg); in testDHKeySpecs() 65 KeyPairGenerator kpg = genKeyGenerator("AndroidOpenSSL","EC", in testECDHKeySpecs() local 67 new MultiThreadTest().runTest("AndroidOpenSSL", "ECDH", kpg); in testECDHKeySpecs() 91 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, provider); in genKeyGenerator() local 94 kpg.initialize(512); in genKeyGenerator() 97 kpg.initialize(256); in genKeyGenerator() 100 kpg.initialize(255); in genKeyGenerator() 103 kpg.initialize(448); in genKeyGenerator() 108 return kpg; in genKeyGenerator() [all …]
|
D | NegativeTest.java | 128 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, in genKeyPair() local 132 kpg.initialize(512); in genKeyPair() 135 kpg.initialize(256); in genKeyPair() 138 kpg.initialize(255); in genKeyPair() 141 kpg.initialize(448); in genKeyPair() 146 return kpg.generateKeyPair(); in genKeyPair() 257 KeyPairGenerator kpg in testNamedParameter() local 259 kpg.initialize(spec); in testNamedParameter() 260 kpg.generateKeyPair(); in testNamedParameter() 344 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, provider); in startKeyAgreement() local [all …]
|
D | KeyAgreementTest.java | 115 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, provider); in testKeyAgreement() local 116 kpg.initialize(spec); in testKeyAgreement() 117 KeyPair kp1 = kpg.generateKeyPair(); in testKeyAgreement() 118 KeyPair kp2 = kpg.generateKeyPair(); in testKeyAgreement()
|
D | KeySpecTest.java | 104 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, provider); in genKeyPair() local 107 kpg.initialize(512); in genKeyPair() 110 kpg.initialize(256); in genKeyPair() 113 kpg.initialize(255); in genKeyPair() 116 kpg.initialize(448); in genKeyPair() 121 return kpg.generateKeyPair(); in genKeyPair()
|
D | KeySizeTest.java | 109 KeyPairGenerator kpg = KeyPairGenerator.getInstance(kpgAlgo, provider); in testKeyAgreement() local 110 kpg.initialize(keySize); in testKeyAgreement() 111 KeyPair kp = kpg.generateKeyPair(); in testKeyAgreement()
|
/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 | 193 KeyPairGenerator kpg; in getInstance() local 195 kpg = (KeyPairGenerator)instance.impl; in getInstance() 198 kpg = new Delegate(spi, algorithm); in getInstance() 200 kpg.provider = instance.provider; in getInstance() 210 return kpg; in getInstance()
|
/libcore/luni/src/test/java/libcore/javax/security/auth/ |
D | X500PrivateCredentialTest.java | 109 KeyPairGenerator kpg = KeyPairGenerator.getInstance("DH"); in createPrivateKey() local 110 kpg.initialize(new DHParameterSpec(DH_PARAMS_P, DH_PARAMS_G)); in createPrivateKey() 111 PrivateKey key = kpg.generateKeyPair().getPrivate(); in createPrivateKey()
|
/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()
|