Home
last modified time | relevance | path

Searched refs:KeyPairGenerator (Results 1 – 25 of 37) sorted by relevance

12

/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyPairGenerator4Test.java20 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 …]
DKeyPairGenerator1Test.java29 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 …]
DKeyPairGenerator3Test.java28 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 {
DKeyPairGenerator2Test.java27 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 …]
DKeyStorePrivateKeyEntryTest.java23 import java.security.KeyPairGenerator;
66 KeyPairGenerator keyPairGenerator = KeyPairGenerator in testGetCertificateChain()
DKeyFactory2Test.java25 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()
DKeyStore3Test.java30 import java.security.KeyPairGenerator;
146 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("DSA"); in setUp()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java22 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/
DKeyPairGenerator.java145 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/
DKeyPairGenerator.java31 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/
DDSAPublicKeyTest.java21 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()
DDSAPrivateKeyTest.java21 import java.security.KeyPairGenerator;
34 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in test_getX()
DDSAKeyTest.java21 import java.security.KeyPairGenerator;
38 KeyPairGenerator gen = KeyPairGenerator.getInstance("DSA"); in test_getParams()
/libcore/luni/src/test/java/libcore/java/security/
DOldKeyPairGeneratorTestDH.java19 import java.security.KeyPairGenerator;
26 KeyPairGenerator generator = KeyPairGenerator.getInstance("DH"); in testKeyPairGenerator()
DOldDHTest.java21 import java.security.KeyPairGenerator;
31 KeyPairGenerator gen = null; in testDHGen()
33 gen = KeyPairGenerator.getInstance("DH"); in testDHGen()
/libcore/benchmarks/src/benchmarks/regression/
DKeyPairGeneratorBenchmark.java22 import java.security.KeyPairGenerator;
38 private KeyPairGenerator generator;
52 this.generator = KeyPairGenerator.getInstance(generatorAlgorithm, provider); in setUp()
DSignatureBenchmark.java22 import java.security.KeyPairGenerator;
74 KeyPairGenerator generator = KeyPairGenerator.getInstance(keyAlgorithm); in setUp()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/interfaces/
DDSAKeyPairGeneratorImpl.java21 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/
DCipherRSAThread.java20 import java.security.KeyPairGenerator;
36 KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA"); in crypt()
DKeyAgreementThread.java22 import java.security.KeyPairGenerator;
38 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DH"); in KeyAgreementGen()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator3.java26 import java.security.KeyPairGenerator;
35 public class MyKeyPairGenerator3 extends KeyPairGenerator {
DMyKeyPairGenerator2.java27 import java.security.KeyPairGenerator;
35 public class MyKeyPairGenerator2 extends KeyPairGenerator {
DMyKeyPairGenerator1.java28 import java.security.KeyPairGenerator;
39 public class MyKeyPairGenerator1 extends KeyPairGenerator {
/libcore/luni/src/test/java/tests/security/spec/
DEncodedKeySpec2Test.java25 import java.security.KeyPairGenerator;
39 KeyPairGenerator keyGen = KeyPairGenerator.getInstance("DSA"); in test_getEncoded()
/libcore/luni/src/test/java/tests/targets/security/
DKeyStoreTest.java23 import java.security.KeyPairGenerator;
112 KeyPairGenerator generator = null; in testKeyStoreCreate()
114 generator = KeyPairGenerator.getInstance(certificate.getPublicKey() in testKeyStoreCreate()

12