Home
last modified time | relevance | path

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

12345

/libcore/tools/docs/crypto/src/java/libcore/java/security/
DListProviders.java101 return a.getAlgorithm().compareTo(b.getAlgorithm()); in main()
106 if (s.getType().equals("Cipher") && s.getAlgorithm().startsWith("PBE")) { in main()
111 if (s.getType().equals("Cipher") && s.getAlgorithm().indexOf('/') == -1) { in main()
115 String name = s.getAlgorithm() + "/" + mode + "/" + padding; in main()
126 print(p, s.getType(), s.getAlgorithm()); in main()
/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/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()
430 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
434 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
438 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
442 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
452 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()
429 assertEquals("Incorrect algorithm", secKF.getAlgorithm(), in test_getAlgorithm()
434 assertNull(msf.getAlgorithm()); in test_getAlgorithm()
464 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()
DKeyTest.java45 public String getAlgorithm() { in getAlgorithm() method in KeyTest.checkKey
/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/security/cert/
DCertPathBuilder1Test.java138 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]); in testCertPathBuilder03()
228 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder07()
291 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder10()
348 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), defaultType); in testCertPathBuilder12()
356 assertNull("Incorrect algorithm", certPB.getAlgorithm()); in testCertPathBuilder12()
377 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), in testCertPathBuilder13()
382 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), in testCertPathBuilder13()
392 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/luni/src/test/java/libcore/java/security/
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()
DMockPublicKey.java27 public String getAlgorithm() { in getAlgorithm() method in MockPublicKey
DMockPrivateKey2.java27 public String getAlgorithm() { in getAlgorithm() method in MockPrivateKey2
DMockPrivateKey.java27 public String getAlgorithm() { in getAlgorithm() method in MockPrivateKey
/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/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/javax/crypto/spec/
DSecretKeySpec.java164 public String getAlgorithm() { in getAlgorithm() method in SecretKeySpec
221 String thatAlg = ((SecretKey)obj).getAlgorithm(); in equals()
/libcore/ojluni/src/main/java/java/security/
DSignedObject.java202 public String getAlgorithm() { in getAlgorithm() method in SignedObject
244 this.thealgorithm = signingEngine.getAlgorithm(); in sign()
/libcore/luni/src/test/java/libcore/javax/crypto/
DMockKey.java27 public String getAlgorithm() { in getAlgorithm() method in MockKey
DMockKey2.java27 public String getAlgorithm() { in getAlgorithm() method in MockKey2
/libcore/support/src/test/java/libcore/javax/net/ssl/
DRandomPrivateKeyX509ExtendedKeyManager.java52 String keyAlgorithm = originalPrivateKey.getAlgorithm(); in getPrivateKey()
80 Assert.fail("Unsupported key algorithm: " + originalPrivateKey.getAlgorithm()); in getPrivateKey()

12345