Home
last modified time | relevance | path

Searched refs:KeyGenerator (Results 1 – 18 of 18) 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()
174 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject1()
218 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject2()
265 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testGetObject3()
279 kg = KeyGenerator.getInstance("DESede"); in testGetObject3()
300 KeyGenerator kg = KeyGenerator.getInstance("DES"); in testDeserialization()
DCipherOutputStream1Test.java35 import javax.crypto.KeyGenerator;
197 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
DExemptionMechanismTest.java38 import javax.crypto.KeyGenerator;
478 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_initLjava_security_Key()
519 KeyGenerator kg = KeyGenerator.getInstance("DES"); in test_initLjava_security_KeyLjava_security_AlgorithmParameters()
560 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()
DSecretKeyFactoryTest.java34 import javax.crypto.KeyGenerator;
453 KeyGenerator kg = null; in test_translateKeyLjavax_crypto_SecretKey()
461 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/luni/src/main/java/javax/crypto/
DKeyGenerator.java34 public class KeyGenerator { class
61 protected KeyGenerator(KeyGeneratorSpi keyGenSpi, Provider provider, in KeyGenerator() method in KeyGenerator
98 public static final KeyGenerator getInstance(String algorithm) in getInstance()
104 return new KeyGenerator((KeyGeneratorSpi) sap.spi, sap.provider, algorithm); in getInstance()
126 public static final KeyGenerator getInstance(String algorithm, in getInstance()
155 public static final KeyGenerator getInstance(String algorithm, in getInstance()
164 return new KeyGenerator((KeyGeneratorSpi) spi, provider, algorithm); in getInstance()
/libcore/luni/src/test/java/libcore/javax/crypto/
DKeyGeneratorTest.java27 import javax.crypto.KeyGenerator;
33 private static boolean isUnsupported(KeyGenerator kg) { in isUnsupported()
50 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); in test_getInstance()
55 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); in test_getInstance()
61 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); in test_getInstance()
125 private void test_KeyGenerator(KeyGenerator kg) throws Exception { in test_KeyGenerator()
150 private void test_SecretKey(KeyGenerator kg, SecretKey sk) throws Exception { in test_SecretKey()
DCipherTest.java50 import javax.crypto.KeyGenerator;
256 KeyGenerator kg = KeyGenerator.getInstance(getBaseAlgorithm(algorithm)); in getEncryptKey()
837 KeyGenerator kg = KeyGenerator.getInstance("AES"); in test_Cipher()
2240 KeyGenerator kg = KeyGenerator.getInstance("AES"); in checkCipher()
2411 KeyGenerator kg = KeyGenerator.getInstance("ARC4"); in testRC4_MultipleKeySizes()
/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/support/src/test/java/tests/security/
DAlgorithmParameterSymmetricHelper.java28 import javax.crypto.KeyGenerator;
52 KeyGenerator generator = null; in test()
54 generator = KeyGenerator.getInstance(algorithmName); in test()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java25 import javax.crypto.KeyGenerator;
109 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreTest.java45 import javax.crypto.KeyGenerator;
257 KeyGenerator keyGen = KeyGenerator.getInstance("DES"); in testEngineEntryInstanceOf()
/libcore/luni/src/test/java/libcore/java/security/
DKeyStoreTest.java52 import javax.crypto.KeyGenerator;
119 KeyGenerator kg = KeyGenerator.getInstance("DES"); in generateSecretKey()
/libcore/expectations/
Dbrokentests.txt236 "com.sun.crypto.provider.KeyGenerator.Test4628062",
237 "com.sun.crypto.provider.KeyGenerator.TestExplicitKeyLength"