Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java37 import javax.crypto.KeyGenerator;
94 private KeyGenerator[] createKGs() throws Exception { in createKGs()
99 KeyGenerator [] kg = new KeyGenerator[3]; in createKGs()
100 kg[0] = KeyGenerator.getInstance(defaultAlgorithm); in createKGs()
101 kg[1] = KeyGenerator.getInstance(defaultAlgorithm, defaultProvider); in createKGs()
102 kg[2] = KeyGenerator.getInstance(defaultAlgorithm, defaultProviderName); in createKGs()
118 KeyGenerator keyG = new myKeyGenerator(spi, defaultProvider, in testKeyGenerator()
159 KeyGenerator.getInstance(null); in testGetInstanceString01()
166 KeyGenerator.getInstance(invalidValues[i]); in testGetInstanceString01()
182 KeyGenerator keyG; in testGetInstanceString02()
[all …]
DSealedObjectTest.java41 import javax.crypto.KeyGenerator;
103 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testSealedObject1()
157 KeyGenerator kg = KeyGenerator.getInstance(algorithm); in testGetAlgorithm()
172 KeyGenerator kg = KeyGenerator.getInstance(algorithm); in testGetAlgorithmAfterSerialization()
202 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject1()
246 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject2()
293 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject3()
307 kg = KeyGenerator.getInstance("DESede"); in testGetObject3()
328 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testDeserialization()
DExemptionMechanismTest.java35 import javax.crypto.KeyGenerator;
435 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_initLjava_security_Key()
476 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
517 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_initLjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
DCipherInputStream1Test.java32 import javax.crypto.KeyGenerator;
255 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
DCipherOutputStream1Test.java41 import javax.crypto.KeyGenerator;
204 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
DSecretKeyFactoryTest.java34 import javax.crypto.KeyGenerator;
456 KeyGenerator kg = null; in test_translateKeyLjavax_crypto_SecretKey()
464 kg = KeyGenerator.getInstance(secKF.getAlgorithm()); in test_translateKeyLjavax_crypto_SecretKey()
DEncryptedPrivateKeyInfoTest.java46 import javax.crypto.KeyGenerator;
1615 KeyGenerator kg = (provider == null) ? KeyGenerator in TestDataGenerator()
1616 .getInstance(algName) : KeyGenerator.getInstance( in TestDataGenerator()
/libcore/ojluni/src/main/java/javax/crypto/
DKeyGenerator.java169 public class KeyGenerator { class
211 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, in KeyGenerator() method in KeyGenerator
226 private KeyGenerator(String algorithm) throws NoSuchAlgorithmException { in KeyGenerator() method in KeyGenerator
289 public static final KeyGenerator getInstance(String algorithm) in getInstance()
291 return new KeyGenerator(algorithm); in getInstance()
330 public static final KeyGenerator getInstance(String algorithm, in getInstance()
337 return new KeyGenerator((KeyGeneratorSpi)instance.impl, in getInstance()
371 public static final KeyGenerator getInstance(String algorithm, in getInstance()
377 return new KeyGenerator((KeyGeneratorSpi)instance.impl, in getInstance()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherOutputStreamTest.java30 import javax.crypto.KeyGenerator;
50 KeyGenerator keygen = KeyGenerator.getInstance("AES"); in testDecryptCorruptGCM()
90 KeyGenerator keygen = KeyGenerator.getInstance("AES", "AndroidKeyStore"); in getAndroidKeyStoreSecretKey()
DCipherInputStreamTest.java35 import javax.crypto.KeyGenerator;
307 KeyGenerator keygen = KeyGenerator.getInstance("AES"); in testDecryptCorruptGCM()
348 KeyGenerator keygen = KeyGenerator.getInstance("AES", "AndroidKeyStore"); in getAndroidKeyStoreSecretKey()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherWrapThread.java23 import javax.crypto.KeyGenerator;
32 KeyGenerator kg = KeyGenerator.getInstance(getAlgName().replace("Wrap", "")); in crypt()
DKeyGeneratorThread.java23 import javax.crypto.KeyGenerator;
31 KeyGenerator kg = KeyGenerator.getInstance(algName); in test()
DCipherSymmetricKeyThread.java24 import javax.crypto.KeyGenerator;
42 KeyGenerator kg = KeyGenerator.getInstance(getAlgName()); in crypt()
/libcore/benchmarks/src/benchmarks/regression/
DCipherInputStreamBenchmark.java25 import javax.crypto.KeyGenerator;
59 KeyGenerator generator = KeyGenerator.getInstance("AES"); in setUp()
DCipherBenchmark.java25 import javax.crypto.KeyGenerator;
106 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/interfaces/
DDHPrivateKeyTest.java30 import javax.crypto.KeyGenerator;
/libcore/luni/src/test/java/libcore/sun/security/jca/
DProvidersTest.java46 import javax.crypto.KeyGenerator;
102 return KeyGenerator.getInstance("HMAC-MD5"); in CONSCRYPT_ALGORITHMS.add()
453 KeyGenerator.getInstance(algorithm, bcProvider); in testRemovedBCAlgorithms()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreTest.java45 import javax.crypto.KeyGenerator;
254 KeyGenerator keyGen = KeyGenerator.getInstance("DES"); in testEngineEntryInstanceOf()
/libcore/
Dopenjdk_java_files.bp1238 "ojluni/src/main/java/javax/crypto/KeyGenerator.java",