/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/provider/crypto/ |
D | DSAKeyFactoryImplTest.java | 120 publicAlgorithm = publicKey.getAlgorithm(); 135 privateAlgorithm = privateKey.getAlgorithm(); 146 public String getAlgorithm() { return "RSA"; } 154 public String getAlgorithm() { return "RSA"; } 159 keyPublic = new Key() { public String getAlgorithm() { return "DSA"; } 163 keyPrivate = new Key() { public String getAlgorithm() { return "DSA"; } 212 0, pk.getAlgorithm().compareTo(publicAlgorithm)); in checkPublicKeys() 245 0, pk.getAlgorithm().compareTo(privateAlgorithm)); in checkPrivateKeys() 324 public String getAlgorithm() { return "DSA"; } in testGeneratePublicKeySpec04() 366 public String getAlgorithm() { return "DSA"; } in testGeneratePublicKeySpec05() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509SignatureUtil.java | 41 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatu… in setSignatureParameters() 52 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 73 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() 77 … return getDigestAlgName(rsaParams.getHashAlgorithm().getAlgorithm()) + "withRSAandMGF1"; in getSignatureName() 79 if (sigAlgId.getAlgorithm().equals(X9ObjectIdentifiers.ecdsa_with_SHA2)) in getSignatureName() 87 return sigAlgId.getAlgorithm().getId(); in getSignatureName()
|
D | KeyFactory.java | 37 …validKeySpecException("no factory found for OID: " + info.getPrivateKeyAlgorithm().getAlgorithm()); in engineGeneratePrivate() 64 …row new InvalidKeySpecException("no factory found for OID: " + info.getAlgorithm().getAlgorithm()); in engineGeneratePublic()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | OperatorHelper.java | 203 dig = helper.createDigest(getDigestAlgName(digAlgId.getAlgorithm())); in createDigest() 210 if (oids.get(digAlgId.getAlgorithm()) != null) in createDigest() 212 String digestAlgorithm = (String)oids.get(digAlgId.getAlgorithm()); in createDigest() 239 if (oids.get(sigAlgId.getAlgorithm()) != null) in createSignature() 241 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in createSignature() 269 if (algorithm.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in createRawSignature() 294 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() 297 … return getDigestAlgName(rsaParams.getHashAlgorithm().getAlgorithm()) + "WITHRSAANDMGF1"; in getSignatureName() 301 if (oids.containsKey(sigAlgId.getAlgorithm())) in getSignatureName() 303 return (String)oids.get(sigAlgId.getAlgorithm()); in getSignatureName() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 92 AlgorithmIdentifier algId = keyInfo.getAlgorithm(); in createKey() 94 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption) in createKey() 95 || algId.getAlgorithm().equals(X509ObjectIdentifiers.id_ea_rsa)) in createKey() 101 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.dhpublicnumber)) in createKey() 133 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 154 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa) in createKey() 155 || algId.getAlgorithm().equals(OIWObjectIdentifiers.dsaWithSHA1)) in createKey() 169 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)) in createKey()
|
D | PrivateKeyFactory.java | 87 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)) in createKey() 98 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 119 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa)) in createKey() 133 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)) in createKey()
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | KeyGeneratorTest.java | 115 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), in testKeyGenerator() 131 assertNull("Algorithm must be null", keyG.getAlgorithm()); in testKeyGenerator() 180 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceString02() 261 assertEquals("Incorrect algorithm", keyG.getAlgorithm(), validValues[i]); in testGetInstanceStringString03() 326 assertEquals("Incorrect algorithm", keyA.getAlgorithm(), validValues[i]); in testGetInstanceStringProvider03() 416 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey() 420 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey() 424 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey() 428 assertEquals("Incorrect algorithm", sKey.getAlgorithm() in testGenerateKey()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/ |
D | KeyPairTest.java | 80 assertEquals("PublicKey algorithm", key1.getAlgorithm(), key2 81 .getAlgorithm()); 91 assertEquals("PrivateKey algorithm", key1.getAlgorithm(), key2 92 .getAlgorithm());
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
D | AlgorithmParameterGenerator1Test.java | 127 assertEquals("Incorrect algorithm", apg.getAlgorithm(), algs[i]); in testAlgorithmParameterGenerator02() 228 assertEquals("Incorrect algorithm", algs[i], apg.getAlgorithm()); in testAlgorithmParameterGenerator06() 299 assertEquals("Incorrect algorithm", apg.getAlgorithm(), algs[i]); in testAlgorithmParameterGenerator09() 318 assertEquals("Incorrect algorithm", ap.getAlgorithm().toUpperCase(), in testAlgorithmParameterGenerator10() 319 apg.getAlgorithm().toUpperCase()); in testAlgorithmParameterGenerator10() 359 assertEquals("Incorrect algorithm", apg.getAlgorithm(), validAlgName); in testAlgorithmParameterGeneratorConstr() 368 assertNull("Incorrect algorithm", apg.getAlgorithm()); in testAlgorithmParameterGeneratorConstr()
|
/external/apache-harmony/security/src/test/api/java.injected/java/security/ |
D | SecureRandomTest.java | 90 if (!sr.getAlgorithm().equals("someRandom") || in testSecureRandom() 117 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceString() 127 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringString() 138 if (sr.getProvider() != p || !"someRandom".equals(sr.getAlgorithm())) { in testGetInstanceStringProvider()
|
D | ProviderTest.java | 131 "Algorithm".equals(s.getAlgorithm()) && in testGetServices() 136 "SHA-1".equals(s.getAlgorithm()) && in testGetServices() 141 "abc".equals(s.getAlgorithm()) && in testGetServices() 180 "SHA-1".equals(s.getAlgorithm()) && in testRemoveService() 185 "abc".equals(s.getAlgorithm()) && in testRemoveService()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | AlgorithmParametersSpi.java | 122 oaepP.getHashAlgorithm().getAlgorithm().getId(), in engineInit() 123 oaepP.getMaskGenAlgorithm().getAlgorithm().getId(), in engineInit() 124 …gorithmIdentifier.getInstance(oaepP.getMaskGenAlgorithm().getParameters()).getAlgorithm().getId()), in engineInit() 229 pssP.getHashAlgorithm().getAlgorithm().getId(), in engineInit() 230 pssP.getMaskGenAlgorithm().getAlgorithm().getId(), in engineInit() 231 …lgorithmIdentifier.getInstance(pssP.getMaskGenAlgorithm().getParameters()).getAlgorithm().getId()), in engineInit()
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
D | SealedObjectTest.java | 67 .getAlgorithm(), so_des.getAlgorithm()); in testReadObject() 106 + "initial object", so1.getAlgorithm(), so2.getAlgorithm()); in testSealedObject2() 124 + "in cipher.", algorithm, so.getAlgorithm()); in testGetAlgorithm()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | MyKeyPairGenerator1.java | 53 public String getAlgorithm() { in getAlgorithm() method in MyKeyPairGenerator1 106 public String getAlgorithm() { in getAlgorithm() method in MyKeyPairGenerator1.PubKey 132 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()
|
/external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/kerberos/ |
D | KerberosKeyTest.java | 64 assertEquals("DES algorithm", "DES", key.getAlgorithm()); in test_Ctor1() 72 assertEquals("NULL algorithm", "NULL", key.getAlgorithm()); in test_Ctor1() 108 assertEquals("algorithm", "DES", key.getAlgorithm()); in test_Ctor2() 179 key.getAlgorithm(); in test_destroy()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertPathBuilder1Test.java | 159 assertEquals("Incorrect algorithm", cpb.getAlgorithm(), validValues[i]); in testCertPathBuilder03() 249 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder07() 312 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), validValues[i]); in testCertPathBuilder10() 353 assertEquals("Incorrect algorithm", certPB.getAlgorithm(), defaultType); in testCertPathBuilder12() 361 assertNull("Incorrect algorithm", certPB.getAlgorithm()); in testCertPathBuilder12()
|
D | CertPathValidator1Test.java | 163 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), validValues[i]); in testCertPathValidator03() 254 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator07() 321 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), in testCertPathValidator10() 372 assertEquals("Incorrect algorithm", certPV.getAlgorithm(), defaultType); in testCertPathValidator12() 381 assertNull("Incorrect algorithm", certPV.getAlgorithm()); in testCertPathValidator12()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | KeyFactorySpi.java | 67 ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm(); in generatePrivate() 82 ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm(); in generatePublic()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyFactorySpi.java | 94 ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm(); in generatePrivate() 113 ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm(); in generatePublic()
|
D | BCDHPublicKey.java | 80 ASN1Sequence seq = ASN1Sequence.getInstance(info.getAlgorithm().getParameters()); in BCDHPublicKey() 81 ASN1ObjectIdentifier id = info.getAlgorithm().getAlgorithm(); in BCDHPublicKey() 109 public String getAlgorithm() in getAlgorithm() method in BCDHPublicKey
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | KeyDerivationFunc.java | 42 public ASN1ObjectIdentifier getAlgorithm() in getAlgorithm() method in KeyDerivationFunc 44 return algId.getAlgorithm(); in getAlgorithm()
|
D | EncryptionScheme.java | 42 public ASN1ObjectIdentifier getAlgorithm() in getAlgorithm() method in EncryptionScheme 44 return algId.getAlgorithm(); in getAlgorithm()
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | KeyManagerFactory1Test.java | 137 assertEquals("Invalid algorithm", keyMF.getAlgorithm(), in testKeyManagerFactory01() 261 assertEquals("Incorrect algorithm", kMF.getAlgorithm(), in testKeyManagerFactory06() 332 assertEquals(kMF.getAlgorithm(), validValues[i]); in testKeyManagerFactory09() 350 assertEquals("Incorrect algorithm", keyMF.getAlgorithm(), in testKeyManagerFactory10() 362 assertNull("Aalgorithm must be null", keyMF.getAlgorithm()); in testKeyManagerFactory10()
|
D | TrustManagerFactory1Test.java | 134 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), in testTrustManagerFactory01() 260 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), in testTrustManagerFactory06() 332 assertEquals("Invalid algorithm", trustMF.getAlgorithm(), in testTrustManagerFactory09() 354 assertEquals("Incorrect algorithm", tmF.getAlgorithm(), in testTrustManagerFactory10() 362 assertNull("Algorithm must be null", tmF.getAlgorithm()); in testTrustManagerFactory10()
|