Home
last modified time | relevance | path

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

12345

/libcore/luni/src/test/java/libcore/javax/crypto/
DKeyGeneratorTest.java35 return (kg.getAlgorithm().startsWith("Sun")); in isUnsupported()
56 String algorithm = service.getAlgorithm(); in test_getInstance()
60 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance()
65 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance()
71 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance()
147 String algorithm = kg.getAlgorithm(); in test_KeyGenerator()
163 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey()
DMockKey.java27 public String getAlgorithm() { in getAlgorithm() method in MockKey
/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java98 return a.getAlgorithm().compareTo(b.getAlgorithm()); in main()
103 if (s.getType().equals("Cipher") && s.getAlgorithm().startsWith("PBE")) { in main()
108 if (s.getType().equals("Cipher") && s.getAlgorithm().indexOf('/') == -1) { in main()
112 String name = s.getAlgorithm() + "/" + mode + "/" + padding; in main()
123 print(p, s.getType(), s.getAlgorithm()); in main()
/libcore/luni/src/test/java/libcore/java/security/
DKeyPairGeneratorTest.java142 String algorithm = service.getAlgorithm();
152 assertEquals(algorithm, kpg1.getAlgorithm());
160 assertEquals(algorithm, kpg2.getAlgorithm());
170 assertEquals(algorithm, kpg3.getAlgorithm());
231 String algorithm = kpg.getAlgorithm(); in test_KeyPairGenerator()
280 String expectedAlgorithm = kpg.getAlgorithm().toUpperCase(Locale.ROOT); in test_Key()
284 assertEquals(expectedAlgorithm, k.getAlgorithm().toUpperCase()); in test_Key()
318 String keyAlgo = k.getAlgorithm(); in test_KeyWithAllKeyFactories()
325 if (!service.getAlgorithm().equals(keyAlgo)) { in test_KeyWithAllKeyFactories()
331 KeyFactory kf = KeyFactory.getInstance(k.getAlgorithm(), p); in test_KeyWithAllKeyFactories()
[all …]
DSecureRandomTest.java45 String algorithm = service.getAlgorithm(); in test_getInstance()
48 assertEquals(algorithm, sr1.getAlgorithm()); in test_getInstance()
53 assertEquals(algorithm, sr2.getAlgorithm()); in test_getInstance()
59 assertEquals(algorithm, sr3.getAlgorithm()); in test_getInstance()
DMessageDigestTest.java63 String algorithm = service.getAlgorithm(); in test_getInstance()
67 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance()
72 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance()
78 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance()
216 String algorithm = md.getAlgorithm(); in test_MessageDigest()
/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/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/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/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/libcore/javax/net/ssl/
DKeyManagerFactoryTest.java81 assertNotNull(kmf.getAlgorithm()); in test_KeyManagerFactory()
109 if (supportsManagerFactoryParameters(kmf.getAlgorithm())) { in test_KeyManagerFactory()
137 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm()); in test_KeyManagerFactory_getKeyManagers()
235 String keyAlgName = privateKey.getAlgorithm(); in test_X509KeyManager_alias()
238 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); in test_X509KeyManager_alias()
271 String algorithm = service.getAlgorithm(); in test_KeyManagerFactory_getInstance()
275 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
282 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
290 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/luni/src/test/java/tests/security/cert/
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()
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()
/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()
340 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/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/ojluni/src/main/java/javax/crypto/spec/
DSecretKeySpec.java164 public String getAlgorithm() { in getAlgorithm() method in SecretKeySpec
221 String thatAlg = ((SecretKey)obj).getAlgorithm(); in equals()
/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
/libcore/ojluni/src/main/java/java/security/
DSignedObject.java202 public String getAlgorithm() { in getAlgorithm() method in SignedObject
244 this.thealgorithm = signingEngine.getAlgorithm(); in sign()
DKey.java123 public String getAlgorithm(); in getAlgorithm() method

12345