Home
last modified time | relevance | path

Searched refs:getAlgorithm (Results 1 – 25 of 121) sorted by relevance

12345

/libcore/luni/src/test/java/libcore/javax/crypto/
DKeyGeneratorTest.java35 return (kg.getAlgorithm().startsWith("Sun")); in isUnsupported()
47 String algorithm = service.getAlgorithm(); in test_getInstance()
51 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance()
56 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance()
62 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance()
138 String algorithm = kg.getAlgorithm(); in test_KeyGenerator()
154 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey()
DMockKey2.java27 public String getAlgorithm() { in getAlgorithm() method in MockKey2
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DKeyGeneratorThread.java33 if(kg.getAlgorithm().toLowerCase().equals(k.getAlgorithm().toLowerCase()) != true) { in test()
37 if(kg.getAlgorithm().toLowerCase().equals(algName.toLowerCase()) != true) { in test()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java122 String algorithm = service.getAlgorithm();
138 assertEquals(algorithm, kpg1.getAlgorithm());
146 assertEquals(algorithm, kpg2.getAlgorithm());
156 assertEquals(algorithm, kpg3.getAlgorithm());
218 String algorithm = kpg.getAlgorithm(); in test_KeyPairGenerator()
267 String expectedAlgorithm = kpg.getAlgorithm().toUpperCase(); in test_Key()
271 assertEquals(expectedAlgorithm, k.getAlgorithm().toUpperCase()); in test_Key()
305 String keyAlgo = k.getAlgorithm(); in test_KeyWithAllKeyFactories()
314 if (!service.getAlgorithm().equals(keyAlgo)) { in test_KeyWithAllKeyFactories()
320 KeyFactory kf = KeyFactory.getInstance(k.getAlgorithm(), p); in test_KeyWithAllKeyFactories()
[all …]
DSecureRandomTest.java46 String algorithm = service.getAlgorithm(); in test_getInstance()
49 assertEquals(algorithm, sr1.getAlgorithm()); in test_getInstance()
54 assertEquals(algorithm, sr2.getAlgorithm()); in test_getInstance()
60 assertEquals(algorithm, sr3.getAlgorithm()); in test_getInstance()
DMessageDigestTest.java58 String algorithm = service.getAlgorithm(); in test_getInstance()
62 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance()
67 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance()
73 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance()
211 String algorithm = md.getAlgorithm(); in test_MessageDigest()
DMockPrivateKey2.java27 public String getAlgorithm() { in getAlgorithm() method in MockPrivateKey2
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DKeyManagerFactoryTest.java79 assertNotNull(kmf.getAlgorithm()); in test_KeyManagerFactory()
107 if (supportsManagerFactoryParameters(kmf.getAlgorithm())) { in test_KeyManagerFactory()
135 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm()); in test_KeyManagerFactory_getKeyManagers()
236 keyAlgName = privateKey.getAlgorithm(); in test_X509KeyManager_alias()
243 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); in test_X509KeyManager_alias()
244 assertEquals(keyType, keyAlgName, privateKey.getAlgorithm()); in test_X509KeyManager_alias()
273 String algorithm = service.getAlgorithm(); in test_KeyManagerFactory_getInstance()
277 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
284 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
292 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
DTrustManagerFactoryTest.java73 assertNotNull(tmf.getAlgorithm()); in test_TrustManagerFactory()
110 if (supportsManagerFactoryParameters(tmf.getAlgorithm())) { in test_TrustManagerFactory()
185 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_getInstance()
188 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance()
195 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance()
203 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance()
231 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_intermediate()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DMyKeyPairGenerator1.java54 public String getAlgorithm() { in getAlgorithm() method in MyKeyPairGenerator1
107 public String getAlgorithm() { in getAlgorithm() method in MyKeyPairGenerator1.PubKey
133 public String getAlgorithm() { in getAlgorithm() method in MyKeyPairGenerator1.PrivKey
DKeyStoreTestSupport.java73 public String getAlgorithm() { in getAlgorithm() method in KeyStoreTestSupport.SKey
102 public String getAlgorithm() { in getAlgorithm() method in KeyStoreTestSupport.MyPrivateKey
150 public String getAlgorithm() { in getPublicKey()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DKeyGeneratorTest.java120 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), in testKeyGenerator()
136 assertNull("Algorithm must be null", keyG.getAlgorithm()); in testKeyGenerator()
185 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceString02()
266 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceStringString03()
331 assertEquals("Incorrect algorithm", keyA.getAlgorithm(), validValues[i]); in testGetInstanceStringProvider03()
427 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
431 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
435 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
439 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
449 assertEquals(validAlgorithmsKeyGenerator[i], kg.getAlgorithm()); in test_getAlgorithm()
[all …]
DSealedObjectTest.java87 .getAlgorithm(), so_des.getAlgorithm()); in testReadObject()
147 + "initial object", so1.getAlgorithm(), so2.getAlgorithm()); in testSealedObject2()
165 + "in cipher.", algorithm, so.getAlgorithm()); in testGetAlgorithm()
180 + "in cipher.", algorithm, so.getAlgorithm()); in testGetAlgorithmAfterSerialization()
193 assertEquals(so.getAlgorithm(), readSo.getAlgorithm()); in testGetAlgorithmAfterSerialization()
DSecretKeyFactoryTest.java129 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in testSecretKeyFactory01()
136 assertNull("Algorithm must be null", secKF.getAlgorithm()); in testSecretKeyFactory01()
179 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in testSecretKeyFactory03()
268 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in testSecretKeyFactory06()
336 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in testSecretKeyFactory09()
426 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in test_getAlgorithm()
431 assertNull(msf.getAlgorithm()); in test_getAlgorithm()
461 kg = KeyGenerator.getInstance(secKF.getAlgorithm()); in test_translateKeyLjavax_crypto_SecretKey()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DAlgorithmParameterGenerator1Test.java126 assertEquals("Incorrect algorithm", apg.getAlgorithm(), algs[i]); in testAlgorithmParameterGenerator02()
227 assertEquals("Incorrect algorithm", algs[i], apg.getAlgorithm()); in testAlgorithmParameterGenerator06()
298 assertEquals("Incorrect algorithm", apg.getAlgorithm(), algs[i]); in testAlgorithmParameterGenerator09()
317 assertEquals("Incorrect algorithm", ap.getAlgorithm().toUpperCase(), in testAlgorithmParameterGenerator10()
318 apg.getAlgorithm().toUpperCase()); in testAlgorithmParameterGenerator10()
366 assertEquals("Incorrect algorithm", apg.getAlgorithm(), validAlgName); in testConstructor()
375 assertNull("Incorrect algorithm", apg.getAlgorithm()); in testConstructor()
DKeyPairTest.java41 public String getAlgorithm() { in getPublic()
54 public String getAlgorithm() { in getPrivate()
/libcore/luni/src/test/java/tests/security/cert/
DCertPathBuilder1Test.java140 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]); in testCertPathBuilder03()
230 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder07()
293 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder10()
352 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), defaultType); in testCertPathBuilder12()
360 assertNull("Incorrect algorithm", certPB.getAlgorithm()); in testCertPathBuilder12()
381 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), in testCertPathBuilder13()
386 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), in testCertPathBuilder13()
396 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), in testCertPathBuilder13()
DCertPathValidator1Test.java156 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), validValues[i]); in testCertPathValidator03()
247 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator07()
314 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator10()
365 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), defaultType); in testCertPathValidator12()
374 assertNull("Incorrect algorithm", certPV.getAlgorithm()); in testCertPathValidator12()
394 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator13()
399 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator13()
407 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator13()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DTrustManagerFactory1Test.java105 assertEquals("Incorrect algorithm", tmF.getAlgorithm(), in test_ConstructorLjavax_net_ssl_TrustManagerFactorySpiLjava_security_ProviderLjava_lang_String()
113 assertNull("Algorithm must be null", tmF.getAlgorithm()); in test_ConstructorLjavax_net_ssl_TrustManagerFactorySpiLjava_security_ProviderLjava_lang_String()
132 .getInstance(getDefaultAlgorithm()).getAlgorithm()); in test_getAlgorithm()
137 .getAlgorithm()); in test_getAlgorithm()
141 .getAlgorithm()); in test_getAlgorithm()
177 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), validValue); in test_getInstanceLjava_lang_String01()
284 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), validValue); in test_getInstanceLjava_lang_StringLjava_lang_String04()
339 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), validValue); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
DKeyManagerFactory1Test.java106 .getInstance(defaultAlgorithm).getAlgorithm()); in test_getAlgorithm()
111 .getAlgorithm()); in test_getAlgorithm()
115 .getAlgorithm()); in test_getAlgorithm()
160 assertEquals("Invalid algorithm", keyMF.getAlgorithm(), in test_getInstanceLjava_lang_String01()
285 assertEquals("Incorrect algorithm", kMF.getAlgorithm(), in test_getInstanceLjava_lang_StringLjava_lang_String04()
358 assertEquals(kMF.getAlgorithm(), validValues[i]); in test_getInstanceLjava_lang_StringLjava_security_Provider03()
375 assertEquals("Incorrect algorithm", keyMF.getAlgorithm(), in test_Constructor()
386 assertNull("Aalgorithm must be null", keyMF.getAlgorithm()); in test_Constructor()
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DAlgorithmIdentifier.java85 public String getAlgorithm() { in getAlgorithm() method in AlgorithmIdentifier
144 sb.append(getAlgorithm()); in dumpValue()
166 values[0] = ObjectIdentifier.toIntArray(aID.getAlgorithm());
/libcore/luni/src/test/java/tests/java/security/
DSecureRandomTest.java102 if (!sr.getAlgorithm().equals("someRandom") || in testSecureRandom()
132 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceString()
142 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringString()
205 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringProvider()
/libcore/luni/src/main/java/java/security/
DKey.java42 public String getAlgorithm(); in getAlgorithm() method
DSignedObject.java87 thealgorithm = signingEngine.getAlgorithm(); in SignedObject()
129 public String getAlgorithm() { in getAlgorithm() method in SignedObject
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/
DMyExemptionMechanismSpi.java117 public String getAlgorithm() { in getAlgorithm() method in MyExemptionMechanismSpi.tmpKey
130 public String getAlgorithm() { in getAlgorithm() method in MyExemptionMechanismSpi.tmp1Key

12345