HomeSort by relevance Sort by last modified time
    Searched refs:KeyGenerator (Results 1 - 25 of 73) sorted by null

1 2 3

  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyGeneratorTest.java 37 import javax.crypto.KeyGenerator;
49 * Tests for KeyGenerator constructor and methods
54 public static final String srvKeyGenerator = "KeyGenerator";
71 private static final String NotSupportMsg = "There is no suitable provider for KeyGenerator";
94 private KeyGenerator[] createKGs() throws Exception {
99 KeyGenerator [] kg = new KeyGenerator[3];
100 kg[0] = KeyGenerator.getInstance(defaultAlgorithm);
101 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider);
102 kg[2] = KeyGenerator.getInstance(defaultAlgorithm, defaultProviderName)
    [all...]
SealedObjectTest.java 41 import javax.crypto.KeyGenerator;
103 KeyGenerator kg = KeyGenerator.getInstance("DES");
157 KeyGenerator kg = KeyGenerator.getInstance(algorithm);
172 KeyGenerator kg = KeyGenerator.getInstance(algorithm);
202 KeyGenerator kg = KeyGenerator.getInstance("DES");
246 KeyGenerator kg = KeyGenerator.getInstance("DES")
    [all...]
  /external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyGeneratorTest.java 32 import javax.crypto.KeyGenerator;
43 * Tests for KeyGenerator constructor and methods
48 public static final String srvKeyGenerator = "KeyGenerator";
65 private static final String NotSupportMsg = "There is no suitable provider for KeyGenerator";
88 private KeyGenerator[] createKGs() throws Exception {
93 KeyGenerator[] kg = new KeyGenerator[3];
94 kg[0] = KeyGenerator.getInstance(defaultAlgorithm);
95 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider);
96 kg[2] = KeyGenerator.getInstance(defaultAlgorithm, defaultProviderName)
    [all...]
  /external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
KeyGenerator_ImplTest.java 34 import javax.crypto.KeyGenerator;
41 * Tests for <code>KeyGenerator</code> class constructors and methods
46 private static final String srvKeyGenerator = "KeyGenerator";
82 private void checkResult(KeyGenerator keyGen) {
129 * returns KeyGenerator object
134 KeyGenerator.getInstance(null);
141 KeyGenerator.getInstance(invalidValues[i]);
147 KeyGenerator keyGen;
149 keyGen = KeyGenerator.getInstance(validValues[i]);
165 * returns KeyGenerator objec
    [all...]
Cipher_Impl1Test.java 26 import javax.crypto.KeyGenerator;
36 KeyGenerator kg = KeyGenerator.getInstance(algorithm);
  /libcore/luni/src/test/java/libcore/javax/crypto/
KeyGeneratorTest.java 27 import javax.crypto.KeyGenerator;
33 private static boolean isUnsupported(KeyGenerator kg) {
44 if (!type.equals("KeyGenerator")) {
48 // Do not test AndroidKeyStore's KeyGenerator. It cannot be initialized without
50 // It's OKish not to test AndroidKeyStore's KeyGenerator here because it's tested
58 // KeyGenerator.getInstance(String)
59 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm);
63 // KeyGenerator.getInstance(String, Provider)
64 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider)
    [all...]
  /external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
SealedObjectTest.java 32 import javax.crypto.KeyGenerator;
116 KeyGenerator kg = KeyGenerator.getInstance(algorithm);
133 KeyGenerator kg = KeyGenerator.getInstance("DES");
168 KeyGenerator kg = KeyGenerator.getInstance("DES");
209 KeyGenerator kg = KeyGenerator.getInstance("DES");
  /libcore/benchmarks/src/benchmarks/regression/
CipherInputStreamBenchmark.java 25 import javax.crypto.KeyGenerator;
59 KeyGenerator generator = KeyGenerator.getInstance("AES");
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
CipherWrapThread.java 23 import javax.crypto.KeyGenerator;
32 KeyGenerator kg = KeyGenerator.getInstance(getAlgName().replace("Wrap", ""));
KeyGeneratorThread.java 23 import javax.crypto.KeyGenerator;
31 KeyGenerator kg = KeyGenerator.getInstance(algName);
34 throw new Exception ("Algorithm names not matched for KeyGenerator" +
38 throw new Exception ("Algorithm names not matched for KeyGenerator" +
CipherSymmetricKeyThread.java 24 import javax.crypto.KeyGenerator;
42 KeyGenerator kg = KeyGenerator.getInstance(getAlgName());
  /libcore/support/src/test/java/tests/security/
AlgorithmParameterSymmetricHelper.java 28 import javax.crypto.KeyGenerator;
51 KeyGenerator generator = KeyGenerator.getInstance(algorithmName);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/
DefaultJcaJceHelper.java 15 import javax.crypto.KeyGenerator;
58 public KeyGenerator createKeyGenerator(String algorithm)
61 return KeyGenerator.getInstance(algorithm);
JcaJceHelper.java 16 import javax.crypto.KeyGenerator;
42 KeyGenerator createKeyGenerator(String algorithm)
NamedJcaJceHelper.java 16 import javax.crypto.KeyGenerator;
65 public KeyGenerator createKeyGenerator(String algorithm)
68 return KeyGenerator.getInstance(algorithm, providerName);
ProviderJcaJceHelper.java 16 import javax.crypto.KeyGenerator;
65 public KeyGenerator createKeyGenerator(String algorithm)
68 return KeyGenerator.getInstance(algorithm, provider);
  /libcore/ojluni/src/main/java/javax/crypto/
KeyGenerator.java 43 * <p>KeyGenerator objects are reusable, i.e., after a key has been
44 * generated, the same KeyGenerator object can be re-used to generate further
57 * method in this KeyGenerator class that takes these two universally
83 * <p>In case the client does not explicitly initialize the KeyGenerator
87 * <p> Android provides the following <code>KeyGenerator</code> algorithms:
156 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
157 * KeyGenerator section</a> of the
166 public class KeyGenerator {
194 * Creates a KeyGenerator object.
200 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider
    [all...]
  /cts/tests/tests/keystore/src/android/keystore/cts/
KeyGeneratorTest.java 43 import javax.crypto.KeyGenerator;
72 // Assert that Android Keystore Provider exposes exactly the expected KeyGenerator
84 if ("KeyGenerator".equalsIgnoreCase(service.getType())) {
97 KeyGenerator keyGenerator = getKeyGenerator(algorithm);
99 keyGenerator.generateKey();
111 KeyGenerator keyGenerator = getKeyGenerator(algorithm);
114 keyGenerator.init(keySizeBits);
128 KeyGenerator keyGenerator = getKeyGenerator(algorithm)
    [all...]
SecretKeyFactoryTest.java 39 import javax.crypto.KeyGenerator;
103 KeyGenerator keyGenerator =
104 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME);
105 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", purposes)
113 SecretKey key = keyGenerator.generateKey();
169 KeyGenerator keyGenerator =
170 KeyGenerator.getInstance(algorithm, EXPECTED_PROVIDER_NAME);
171 keyGenerator.init(new KeyGenParameterSpec.Builder("test1", 0).build())
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/
MD5.java 31 public static class KeyGenerator
34 public KeyGenerator()
73 addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
SHA224.java 47 public static class KeyGenerator
50 public KeyGenerator()
71 addHMACAlgorithm(provider, "SHA224", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
SHA256.java 65 public static class KeyGenerator
68 public KeyGenerator()
95 addHMACAlgorithm(provider, "SHA256", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
SHA384.java 53 public static class KeyGenerator
56 public KeyGenerator()
91 addHMACAlgorithm(provider, "SHA384", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
SHA512.java 127 public static class KeyGenerator
130 public KeyGenerator()
183 addHMACAlgorithm(provider, "SHA512", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
  /frameworks/base/keystore/java/android/security/
SystemKeyStore.java 28 import javax.crypto.KeyGenerator;
79 KeyGenerator skg = KeyGenerator.getInstance(algName);

Completed in 424 milliseconds

1 2 3