/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorTest.java | 120 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 …]
|
D | SealedObjectTest.java | 87 .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()
|
D | SecretKeyFactoryTest.java | 129 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/ |
D | AlgorithmParameterGenerator1Test.java | 126 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()
|
D | KeyPairTest.java | 41 public String getAlgorithm() { in getPublic() 54 public String getAlgorithm() { in getPrivate()
|
D | KeyPairGenerator1Test.java | 128 assertEquals("Incorrect algorithm ", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator02() 230 assertEquals("Incorrect algorithm", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator06() 300 assertEquals("Incorrect algorithm", kpg.getAlgorithm().toUpperCase(), in testKeyPairGenerator09() 390 assertEquals("Incorrect algorithm", mKPG.getAlgorithm(), in testKeyPairGenerator12() 465 assertEquals("Algorithm must be null", mKPG.getAlgorithm(), in testKeyPairGenerator13()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyGeneratorThread.java | 33 if(kg.getAlgorithm().toLowerCase().equals(k.getAlgorithm().toLowerCase()) != true) { in test() 37 if(kg.getAlgorithm().toLowerCase().equals(algName.toLowerCase()) != true) { in test()
|
/libcore/tools/docs/crypto/src/java/libcore/java/security/ |
D | ListProviders.java | 89 .thenComparing(Service::getAlgorithm)); in main() 92 if (s.getType().equals("Cipher") && s.getAlgorithm().startsWith("PBE")) { in main() 97 if (s.getType().equals("Cipher") && s.getAlgorithm().indexOf('/') == -1) { in main() 101 String name = s.getAlgorithm() + "/" + mode + "/" + padding; in main() 112 print(p, s.getType(), s.getAlgorithm()); in main()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator1.java | 54 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
|
D | KeyStoreTestSupport.java | 73 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/tests/security/cert/ |
D | CertPathValidator1Test.java | 156 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()
|
D | CertPathBuilder1Test.java | 138 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()
|
D | CertPathBuilder2Test.java | 118 assertEquals("Incorrect type", cerPB.getAlgorithm(), validValues[i]); in testGetInstance01() 181 assertEquals("Incorrect type", cerPB.getAlgorithm(), validValues[i]); in testGetInstance02() 224 assertEquals("Incorrect type", cerPB.getAlgorithm(), validValues[i]); in testGetInstance03()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | TrustManagerFactory1Test.java | 105 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()
|
D | KeyManagerFactory1Test.java | 106 .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/libcore/java/security/ |
D | SecureRandomTest.java | 45 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()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | SecureRandomTest.java | 102 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/ |
D | MyExemptionMechanismSpi.java | 117 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/ |
D | SecretKeySpec.java | 164 public String getAlgorithm() { in getAlgorithm() method in SecretKeySpec 221 String thatAlg = ((SecretKey)obj).getAlgorithm(); in equals()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SignedObject.java | 202 public String getAlgorithm() { in getAlgorithm() method in SignedObject 244 this.thealgorithm = signingEngine.getAlgorithm(); in sign()
|
D | Key.java | 131 public String getAlgorithm(); in getAlgorithm() method
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | DisabledAlgorithmConstraints.java | 180 if (!permits(primitives, key.getAlgorithm(), null)) { in checkConstraints() 207 if (!permits(primitives, cert.getPublicKey().getAlgorithm(), null)) { in checkConstraints() 327 Set<Constraint> set = getConstraints(key.getAlgorithm()); in permits() 360 algorithms.add(cert.getPublicKey().getAlgorithm()); in permits() 547 if (algorithm.compareToIgnoreCase(key.getAlgorithm()) != 0) { in permitsImpl()
|
/libcore/ojluni/src/test/java/security/KeyStore/ |
D | DefaultEntryType.java | 58 public String getAlgorithm() { return ("matching_alg"); } in getAlgorithm() method in DefaultEntryType.PrivKey1 64 public String getAlgorithm() { return ("non_matching_alg"); } in getAlgorithm() method in DefaultEntryType.PubKey1 70 public String getAlgorithm() { return ("matching_alg"); } in getAlgorithm() method in DefaultEntryType.PubKey2
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 52 String keyAlgorithm = originalPrivateKey.getAlgorithm(); in getPrivateKey() 80 Assert.fail("Unsupported key algorithm: " + originalPrivateKey.getAlgorithm()); in getPrivateKey()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | SealedObject.java | 180 this.paramsAlg = c.getParameters().getAlgorithm(); in SealedObject() 184 this.sealAlg = c.getAlgorithm(); in SealedObject() 209 public final String getAlgorithm() { in getAlgorithm() method in SealedObject
|