Searched refs:KeyGenerator (Results 1 - 19 of 19) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DKeyGeneratorTest.java37 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
[all...]
H A DSealedObjectTest.java41 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 k
[all...]
H A DExemptionMechanismTest.java35 import javax.crypto.KeyGenerator;
435 KeyGenerator kg = KeyGenerator.getInstance("DES");
476 KeyGenerator kg = KeyGenerator.getInstance("DES");
517 KeyGenerator kg = KeyGenerator.getInstance("DES");
H A DCipherInputStream1Test.java32 import javax.crypto.KeyGenerator;
255 KeyGenerator kg = KeyGenerator.getInstance("DES");
H A DCipherOutputStream1Test.java41 import javax.crypto.KeyGenerator;
204 KeyGenerator kg = KeyGenerator.getInstance("DES");
H A DSecretKeyFactoryTest.java34 import javax.crypto.KeyGenerator;
456 KeyGenerator kg = null;
464 kg = KeyGenerator.getInstance(secKF.getAlgorithm());
H A DEncryptedPrivateKeyInfoTest.java46 import javax.crypto.KeyGenerator;
1615 KeyGenerator kg = (provider == null) ? KeyGenerator
1616 .getInstance(algName) : KeyGenerator.getInstance(
/libcore/benchmarks/src/benchmarks/regression/
H A DCipherInputStreamBenchmark.java25 import javax.crypto.KeyGenerator;
59 KeyGenerator generator = KeyGenerator.getInstance("AES");
H A DCipherBenchmark.java25 import javax.crypto.KeyGenerator;
106 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm);
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DCipherWrapThread.java23 import javax.crypto.KeyGenerator;
32 KeyGenerator kg = KeyGenerator.getInstance(getAlgName().replace("Wrap", ""));
H A DKeyGeneratorThread.java23 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" +
H A DCipherSymmetricKeyThread.java24 import javax.crypto.KeyGenerator;
42 KeyGenerator kg = KeyGenerator.getInstance(getAlgName());
/libcore/support/src/test/java/tests/security/
H A DAlgorithmParameterSymmetricHelper.java28 import javax.crypto.KeyGenerator;
51 KeyGenerator generator = KeyGenerator.getInstance(algorithmName);
/libcore/luni/src/test/java/libcore/javax/crypto/
H A DCipherOutputStreamTest.java30 import javax.crypto.KeyGenerator;
50 KeyGenerator keygen = KeyGenerator.getInstance("AES");
90 KeyGenerator keygen = KeyGenerator.getInstance("AES", "AndroidKeyStore");
H A DCipherInputStreamTest.java35 import javax.crypto.KeyGenerator;
307 KeyGenerator keygen = KeyGenerator.getInstance("AES");
348 KeyGenerator keygen = KeyGenerator.getInstance("AES", "AndroidKeyStore");
/libcore/ojluni/src/main/java/javax/crypto/
H A DKeyGenerator.java43 * <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
82 * <p>In case the client does not explicitly initialize the KeyGenerator
86 * <p> Android provides the following <code>KeyGenerator</code> algorithms:
159 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#KeyGenerator">
160 * KeyGenerator section</a> of the
169 public class KeyGenerator { class
205 * Creates a KeyGenerator object.
211 protected KeyGenerator(KeyGeneratorSp method in class:KeyGenerator
226 private KeyGenerator(String algorithm) throws NoSuchAlgorithmException { method in class:KeyGenerator
[all...]
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
H A DDHPrivateKeyTest.java30 import javax.crypto.KeyGenerator;
/libcore/luni/src/test/java/libcore/sun/security/jca/
H A DProvidersTest.java37 import javax.crypto.KeyGenerator;
94 return KeyGenerator.getInstance("HMAC-MD5", Security.getProvider("BC"));
151 return KeyGenerator.getInstance("HMAC-MD5");
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKeyStoreTest.java45 import javax.crypto.KeyGenerator;
254 KeyGenerator keyGen = KeyGenerator.getInstance("DES");

Completed in 290 milliseconds