/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509SignatureUtil.java | 37 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatu… in setSignatureParameters() 48 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 69 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() 73 … return getDigestAlgName(rsaParams.getHashAlgorithm().getAlgorithm()) + "withRSAandMGF1"; in getSignatureName() 75 if (sigAlgId.getAlgorithm().equals(X9ObjectIdentifiers.ecdsa_with_SHA2)) in getSignatureName() 87 … String algName = prov.getProperty("Alg.Alias.Signature." + sigAlgId.getAlgorithm().getId()); in getSignatureName() 102 … String algName = provs[i].getProperty("Alg.Alias.Signature." + sigAlgId.getAlgorithm().getId()); in getSignatureName() 109 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 | 237 if (cipherAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)) in createAlgorithmParameters() 244 parameters = helper.createAlgorithmParameters(cipherAlgId.getAlgorithm().getId()); in createAlgorithmParameters() 274 dig = helper.createDigest(MessageDigestUtils.getDigestName(digAlgId.getAlgorithm())); in createDigest() 281 if (oids.get(digAlgId.getAlgorithm()) != null) in createDigest() 283 String digestAlgorithm = (String)oids.get(digAlgId.getAlgorithm()); in createDigest() 310 if (oids.get(sigAlgId.getAlgorithm()) != null) in createSignature() 312 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in createSignature() 322 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in createSignature() 361 if (algorithm.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in createRawSignature() 386 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | AlgorithmParametersSpi.java | 122 … if (!oaepP.getMaskGenAlgorithm().getAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1)) in engineInit() 124 …new IOException("unknown mask generation function: " + oaepP.getMaskGenAlgorithm().getAlgorithm()); in engineInit() 128 … MessageDigestUtils.getDigestName(oaepP.getHashAlgorithm().getAlgorithm()), in engineInit() 130 …Name(AlgorithmIdentifier.getInstance(oaepP.getMaskGenAlgorithm().getParameters()).getAlgorithm())), in engineInit() 234 … if (!pssP.getMaskGenAlgorithm().getAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1)) in engineInit() 236 … new IOException("unknown mask generation function: " + pssP.getMaskGenAlgorithm().getAlgorithm()); in engineInit() 240 … MessageDigestUtils.getDigestName(pssP.getHashAlgorithm().getAlgorithm()), in engineInit() 242 …tName(AlgorithmIdentifier.getInstance(pssP.getMaskGenAlgorithm().getParameters()).getAlgorithm())), in engineInit()
|
D | KeyFactorySpi.java | 136 ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm(); in generatePrivate() 160 ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm(); in generatePublic()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/crypto/ |
D | KeyGeneratorTest.java | 91 String algorithm = service.getAlgorithm(); in test_getInstance() 95 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance() 100 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance() 106 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance() 183 String algorithm = kg.getAlgorithm(); in test_KeyGenerator() 199 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey()
|
D | CipherTest.java | 977 String algorithm = encryptCipher.getAlgorithm().toUpperCase(Locale.US); in getDecryptAlgorithmParameterSpec() 1038 String algorithm = service.getAlgorithm().toUpperCase(Locale.US); in test_getInstance() 1128 assertEquals(algorithm, c1.getAlgorithm()); in test_Cipher_Algorithm() 1134 assertEquals(algorithm, c2.getAlgorithm()); in test_Cipher_Algorithm() 1140 assertEquals(algorithm, c3.getAlgorithm()); in test_Cipher_Algorithm() 1146 String algorithm = c.getAlgorithm().toUpperCase(Locale.US); in test_Cipher() 1283 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in test_Cipher() 1286 + " sk.getAlgorithm()=" + sk.getAlgorithm() in test_Cipher() 1287 + " decryptedKey.getAlgorithm()=" + decryptedKey.getAlgorithm() in test_Cipher() 1399 if (!isPBE(c.getAlgorithm())) { in test_Cipher_init_NullParameters() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 86 AlgorithmIdentifier algId = keyInfo.getAlgorithm(); in createKey() 88 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption) in createKey() 89 || algId.getAlgorithm().equals(X509ObjectIdentifiers.id_ea_rsa)) in createKey() 95 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.dhpublicnumber)) in createKey() 127 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 150 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa) in createKey() 151 || algId.getAlgorithm().equals(OIWObjectIdentifiers.dsaWithSHA1)) in createKey() 165 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)) in createKey()
|
D | PrivateKeyFactory.java | 81 if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)) in createKey() 92 else if (algId.getAlgorithm().equals(PKCSObjectIdentifiers.dhKeyAgreement)) in createKey() 115 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_dsa)) in createKey() 129 else if (algId.getAlgorithm().equals(X9ObjectIdentifiers.id_ecPublicKey)) in createKey()
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/javax/net/ssl/ |
D | KeyManagerFactoryTest.java | 93 assertNotNull(kmf.getAlgorithm()); in test_KeyManagerFactory() 124 if (supportsManagerFactoryParameters(kmf.getAlgorithm())) { in test_KeyManagerFactory() 153 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm()); in test_KeyManagerFactory_getKeyManagers() 244 String keyAlgName = privateKey.getAlgorithm(); in test_X509KeyManager_alias() 247 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); in test_X509KeyManager_alias() 279 String algorithm = service.getAlgorithm(); in test_KeyManagerFactory_getInstance() 283 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 289 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 297 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
|
D | TrustManagerFactoryTest.java | 82 assertNotNull(tmf.getAlgorithm()); in test_TrustManagerFactory() 123 if (supportsManagerFactoryParameters(tmf.getAlgorithm())) { in test_TrustManagerFactory() 201 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_getInstance() 204 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 210 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 218 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 247 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_intermediate()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/ |
D | PKCS10CertificationRequest.java | 415 AlgorithmIdentifier keyAlg = subjectPKInfo.getAlgorithm(); in getPublicKey() 420 … return KeyFactory.getInstance(keyAlg.getAlgorithm().getId()).generatePublic(xspec); in getPublicKey() 424 … return KeyFactory.getInstance(keyAlg.getAlgorithm().getId(), provider).generatePublic(xspec); in getPublicKey() 432 if (keyAlgorithms.get(keyAlg.getAlgorithm()) != null) in getPublicKey() 434 String keyAlgorithm = (String)keyAlgorithms.get(keyAlg.getAlgorithm()); in getPublicKey() 507 if (oids.get(sigAlgId.getAlgorithm()) != null) in verify() 509 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in verify() 564 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatur… in setSignatureParameters() 575 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 596 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | DefaultCMSSignatureAlgorithmNameGenerator.java | 175 String digestName = getDigestAlgName(encryptionAlg.getAlgorithm()); in getSignatureName() 177 if (!digestName.equals(encryptionAlg.getAlgorithm().getId())) in getSignatureName() 179 return digestName + "with" + getEncryptionAlgName(encryptionAlg.getAlgorithm()); in getSignatureName() 182 …return getDigestAlgName(digestAlg.getAlgorithm()) + "with" + getEncryptionAlgName(encryptionAlg.ge… in getSignatureName()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | X509SignatureUtil.java | 38 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatu… in setSignatureParameters() 49 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 80 if (sigAlgId.getAlgorithm().equals(X9ObjectIdentifiers.ecdsa_with_SHA2)) in getSignatureName() 88 return sigAlgId.getAlgorithm().getId(); in getSignatureName()
|
D | BouncyCastleProvider.java | 324 …foConverter converter = getAsymmetricKeyInfoConverter(publicKeyInfo.getAlgorithm().getAlgorithm()); in getPublicKey() 337 … converter = getAsymmetricKeyInfoConverter(privateKeyInfo.getPrivateKeyAlgorithm().getAlgorithm()); in getPrivateKey()
|
D | JDKDSAPublicKey.java | 77 if (isNotNull(info.getAlgorithm().getParameters())) in JDKDSAPublicKey() 79 DSAParameter params = DSAParameter.getInstance(info.getAlgorithm().getParameters()); in JDKDSAPublicKey() 90 public String getAlgorithm() in getAlgorithm() method in JDKDSAPublicKey
|
/external/conscrypt/platform/src/main/java/org/conscrypt/ |
D | CertificatePriorityComparator.java | 121 String lhsAlgorithm = lhs.getAlgorithm().toUpperCase(Locale.US); in compareKeyAlgorithm() 122 String rhsAlgorithm = rhs.getAlgorithm().toUpperCase(Locale.US); in compareKeyAlgorithm() 137 String lhsAlgorithm = lhs.getAlgorithm().toUpperCase(Locale.US); in compareKeySize() 138 String rhsAlgorithm = rhs.getAlgorithm().toUpperCase(Locale.US); in compareKeySize()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | CryptoUpcalls.java | 68 String keyAlgorithm = javaKey.getAlgorithm(); in rawSignDigestWithPrivateKey() 130 "Exception while signing message with " + javaKey.getAlgorithm() in rawSignDigestWithPrivateKey() 138 String keyAlgorithm = javaKey.getAlgorithm(); in rsaDecryptWithPrivateKey() 212 "Exception while decrypting message with " + javaKey.getAlgorithm() in rsaDecryptWithPrivateKey()
|
/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/jce/netscape/ |
D | NetscapeCertRequest.java | 117 keyAlg = pubkeyinfo.getAlgorithm(); in NetscapeCertRequest() 118 pubkey = KeyFactory.getInstance(keyAlg.getAlgorithm().getId(), "BC") in NetscapeCertRequest() 206 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId(), in verify() 226 Signature sig = Signature.getInstance(sigAlg.getAlgorithm().getId(), in sign()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dh/ |
D | KeyFactorySpi.java | 102 ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm(); in generatePrivate() 121 ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm(); in generatePublic()
|
D | BCDHPublicKey.java | 88 ASN1Sequence seq = ASN1Sequence.getInstance(info.getAlgorithm().getParameters()); in BCDHPublicKey() 89 ASN1ObjectIdentifier id = info.getAlgorithm().getAlgorithm(); in BCDHPublicKey() 128 public String getAlgorithm() in getAlgorithm() method in BCDHPublicKey
|
/external/nist-sip/java/gov/nist/javax/sip/clientauthutils/ |
D | AuthenticationHelperImpl.java | 306 response = MessageDigestAlgorithm.calculateResponse(authHeader.getAlgorithm(), in getAuthorization() 326 if (authHeader.getAlgorithm() != null) { in getAuthorization() 327 authorization.setAlgorithm(authHeader.getAlgorithm()); in getAuthorization() 373 response = MessageDigestAlgorithm.calculateResponse(authHeader.getAlgorithm(), in getAuthorization() 392 if (authHeader.getAlgorithm() != null) { in getAuthorization() 393 authorization.setAlgorithm(authHeader.getAlgorithm()); in getAuthorization()
|
/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()
|