/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()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | X509SignatureUtil.java | 38 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatu… in setSignatureParameters() 49 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 70 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() 74 … return getDigestAlgName(rsaParams.getHashAlgorithm().getAlgorithm()) + "withRSAandMGF1"; in getSignatureName() 76 if (sigAlgId.getAlgorithm().equals(X9ObjectIdentifiers.ecdsa_with_SHA2)) in getSignatureName() 88 … String algName = prov.getProperty("Alg.Alias.Signature." + sigAlgId.getAlgorithm().getId()); in getSignatureName() 103 … String algName = provs[i].getProperty("Alg.Alias.Signature." + sigAlgId.getAlgorithm().getId()); in getSignatureName() 110 return sigAlgId.getAlgorithm().getId(); in getSignatureName()
|
D | KeyFactory.java | 41 …validKeySpecException("no factory found for OID: " + info.getPrivateKeyAlgorithm().getAlgorithm()); in engineGeneratePrivate() 68 …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 | 319 if (cipherAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.rsaEncryption)) in createAlgorithmParameters() 326 parameters = helper.createAlgorithmParameters(cipherAlgId.getAlgorithm().getId()); in createAlgorithmParameters() 356 dig = helper.createDigest(MessageDigestUtils.getDigestName(digAlgId.getAlgorithm())); in createDigest() 363 if (oids.get(digAlgId.getAlgorithm()) != null) in createDigest() 365 String digestAlgorithm = (String)oids.get(digAlgId.getAlgorithm()); in createDigest() 392 if (oids.get(sigAlgId.getAlgorithm()) != null) in createSignature() 394 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in createSignature() 404 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in createSignature() 443 if (algorithm.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in createRawSignature() 468 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() [all …]
|
/external/conscrypt/openjdk-integ-tests/src/test/java/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 221 String algorithm = service.getAlgorithm(); in test_getInstance() 231 assertEquals(algorithm, kpg1.getAlgorithm()); in test_getInstance() 239 assertEquals(algorithm, kpg2.getAlgorithm()); in test_getInstance() 249 assertEquals(algorithm, kpg3.getAlgorithm()); in test_getInstance() 311 String algorithm = kpg.getAlgorithm(); in test_KeyPairGenerator() 381 String expectedAlgorithm = kpg.getAlgorithm().toUpperCase(Locale.ROOT); in test_Key() 385 assertEquals(expectedAlgorithm, k.getAlgorithm().toUpperCase()); in test_Key() 427 String keyAlgo = k.getAlgorithm(); in test_KeyWithAllKeyFactories() 434 if (!service.getAlgorithm().equals(keyAlgo)) { in test_KeyWithAllKeyFactories() 437 if ("EC".equals(k.getAlgorithm()) in test_KeyWithAllKeyFactories() [all …]
|
D | MessageDigestTest.java | 80 String algorithm = service.getAlgorithm(); in test_getInstance() 84 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance() 89 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance() 95 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance() 239 String algorithm = md.getAlgorithm(); in test_MessageDigest()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/java/security/ |
D | KeyPairGeneratorTest.java | 225 String algorithm = service.getAlgorithm(); in test_getInstance() 235 assertEquals(algorithm, kpg1.getAlgorithm()); in test_getInstance() 243 assertEquals(algorithm, kpg2.getAlgorithm()); in test_getInstance() 253 assertEquals(algorithm, kpg3.getAlgorithm()); in test_getInstance() 315 String algorithm = kpg.getAlgorithm(); in test_KeyPairGenerator() 384 String expectedAlgorithm = kpg.getAlgorithm().toUpperCase(Locale.ROOT); in test_Key() 388 assertEquals(expectedAlgorithm, k.getAlgorithm().toUpperCase()); in test_Key() 430 String keyAlgo = k.getAlgorithm(); in test_KeyWithAllKeyFactories() 437 if (!service.getAlgorithm().equals(keyAlgo)) { in test_KeyWithAllKeyFactories() 440 if ("EC".equals(k.getAlgorithm()) in test_KeyWithAllKeyFactories() [all …]
|
D | MessageDigestTest.java | 84 String algorithm = service.getAlgorithm(); in test_getInstance() 88 assertEquals(algorithm, md1.getAlgorithm()); in test_getInstance() 93 assertEquals(algorithm, md2.getAlgorithm()); in test_getInstance() 99 assertEquals(algorithm, md3.getAlgorithm()); in test_getInstance() 243 String algorithm = md.getAlgorithm(); in test_MessageDigest()
|
/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()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | AlgorithmParametersSpi.java | 129 … if (!oaepP.getMaskGenAlgorithm().getAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1)) in engineInit() 131 …new IOException("unknown mask generation function: " + oaepP.getMaskGenAlgorithm().getAlgorithm()); in engineInit() 135 … MessageDigestUtils.getDigestName(oaepP.getHashAlgorithm().getAlgorithm()), in engineInit() 137 …Name(AlgorithmIdentifier.getInstance(oaepP.getMaskGenAlgorithm().getParameters()).getAlgorithm())), in engineInit() 244 … if (!pssP.getMaskGenAlgorithm().getAlgorithm().equals(PKCSObjectIdentifiers.id_mgf1)) in engineInit() 246 … new IOException("unknown mask generation function: " + pssP.getMaskGenAlgorithm().getAlgorithm()); in engineInit() 250 … MessageDigestUtils.getDigestName(pssP.getHashAlgorithm().getAlgorithm()), in engineInit() 252 …tName(AlgorithmIdentifier.getInstance(pssP.getMaskGenAlgorithm().getParameters()).getAlgorithm())), in engineInit()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/crypto/ |
D | KeyGeneratorTest.java | 95 String algorithm = service.getAlgorithm(); in test_getInstance() 99 assertEquals(algorithm, kg1.getAlgorithm()); in test_getInstance() 104 assertEquals(algorithm, kg2.getAlgorithm()); in test_getInstance() 110 assertEquals(algorithm, kg3.getAlgorithm()); in test_getInstance() 187 String algorithm = kg.getAlgorithm(); in test_KeyGenerator() 203 assertEquals(kg.getAlgorithm().toUpperCase(), sk.getAlgorithm().toUpperCase()); in test_SecretKey()
|
/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()
|
/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/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() 274 String keyAlgName = privateKey.getAlgorithm(); in test_X509KeyManager_alias() 277 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); in test_X509KeyManager_alias() 310 String algorithm = service.getAlgorithm(); in test_KeyManagerFactory_getInstance() 314 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 320 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 328 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
|
D | TrustManagerFactoryTest.java | 68 return (StandardNames.IS_RI && tmf.getAlgorithm().equals("PKIX") in supportsManagerFactoryParameters() 84 assertNotNull(tmf.getAlgorithm()); in test_TrustManagerFactory() 204 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_getInstance() 207 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 213 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 221 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 250 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_intermediate()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/ |
D | PKCS10CertificationRequest.java | 417 AlgorithmIdentifier keyAlg = subjectPKInfo.getAlgorithm(); in getPublicKey() 422 … return KeyFactory.getInstance(keyAlg.getAlgorithm().getId()).generatePublic(xspec); in getPublicKey() 426 … return KeyFactory.getInstance(keyAlg.getAlgorithm().getId(), provider).generatePublic(xspec); in getPublicKey() 434 if (keyAlgorithms.get(keyAlg.getAlgorithm()) != null) in getPublicKey() 436 String keyAlgorithm = (String)keyAlgorithms.get(keyAlg.getAlgorithm()); in getPublicKey() 509 if (oids.get(sigAlgId.getAlgorithm()) != null) in verify() 511 String signatureAlgorithm = (String)oids.get(sigAlgId.getAlgorithm()); in verify() 566 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatur… in setSignatureParameters() 577 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 598 if (sigAlgId.getAlgorithm().equals(PKCSObjectIdentifiers.id_RSASSA_PSS)) in getSignatureName() [all …]
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | DefaultCMSSignatureAlgorithmNameGenerator.java | 213 String digestName = getDigestAlgName(encryptionAlg.getAlgorithm()); in getSignatureName() 215 if (!digestName.equals(encryptionAlg.getAlgorithm().getId())) in getSignatureName() 217 return digestName + "with" + getEncryptionAlgName(encryptionAlg.getAlgorithm()); in getSignatureName() 220 …return getDigestAlgName(digestAlg.getAlgorithm()) + "with" + getEncryptionAlgName(encryptionAlg.ge… in getSignatureName()
|
/external/conscrypt/repackaged/openjdk-integ-tests/src/test/java/com/android/org/conscrypt/javax/net/ssl/ |
D | KeyManagerFactoryTest.java | 97 assertNotNull(kmf.getAlgorithm()); in test_KeyManagerFactory() 128 if (supportsManagerFactoryParameters(kmf.getAlgorithm())) { in test_KeyManagerFactory() 157 test_X509KeyManager((X509KeyManager) keyManager, empty, kmf.getAlgorithm()); in test_KeyManagerFactory_getKeyManagers() 278 String keyAlgName = privateKey.getAlgorithm(); in test_X509KeyManager_alias() 281 assertEquals(keyType, keyAlgName, certificate.getPublicKey().getAlgorithm()); in test_X509KeyManager_alias() 314 String algorithm = service.getAlgorithm(); in test_KeyManagerFactory_getInstance() 318 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 324 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance() 332 assertEquals(algorithm, kmf.getAlgorithm()); in test_KeyManagerFactory_getInstance()
|
D | TrustManagerFactoryTest.java | 72 return (StandardNames.IS_RI && tmf.getAlgorithm().equals("PKIX") in supportsManagerFactoryParameters() 88 assertNotNull(tmf.getAlgorithm()); in test_TrustManagerFactory() 208 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_getInstance() 211 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 217 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 225 assertEquals(algorithm, tmf.getAlgorithm()); in test_TrustManagerFactory_getInstance() 254 String algorithm = service.getAlgorithm(); in test_TrustManagerFactory_intermediate()
|
/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()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jce/provider/ |
D | X509SignatureUtil.java | 39 …AlgorithmParameters sigParams = AlgorithmParameters.getInstance(signature.getAlgorithm(), signatu… in setSignatureParameters() 50 if (signature.getAlgorithm().endsWith("MGF1")) in setSignatureParameters() 81 if (sigAlgId.getAlgorithm().equals(X9ObjectIdentifiers.ecdsa_with_SHA2)) in getSignatureName() 89 return sigAlgId.getAlgorithm().getId(); in getSignatureName()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 154 AlgorithmIdentifier algId = keyInfo.getAlgorithm(); in createKey() 155 …icKeyInfoConverter converter = (SubjectPublicKeyInfoConverter)converters.get(algId.getAlgorithm()); in createKey() 163 …hrow new IOException("algorithm identifier in public key not recognised: " + algId.getAlgorithm()); in createKey() 195 … DomainParameters dhParams = DomainParameters.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters() 229 DHParameter params = DHParameter.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters() 265 ASN1Encodable de = keyInfo.getAlgorithm().getParameters(); in getPublicKeyParameters() 283 … X962Parameters params = X962Parameters.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | CertificatePriorityComparator.java | 120 String lhsAlgorithm = lhs.getAlgorithm(); in compareKeyAlgorithm() 121 String rhsAlgorithm = rhs.getAlgorithm(); in compareKeyAlgorithm() 136 String lhsAlgorithm = lhs.getAlgorithm(); in compareKeySize() 137 String rhsAlgorithm = rhs.getAlgorithm(); in compareKeySize()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | CertificatePriorityComparator.java | 122 String lhsAlgorithm = lhs.getAlgorithm(); in compareKeyAlgorithm() 123 String rhsAlgorithm = rhs.getAlgorithm(); in compareKeyAlgorithm() 138 String lhsAlgorithm = lhs.getAlgorithm(); in compareKeySize() 139 String rhsAlgorithm = rhs.getAlgorithm(); in compareKeySize()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/util/ |
D | PublicKeyFactory.java | 156 AlgorithmIdentifier algId = keyInfo.getAlgorithm(); in createKey() 157 …icKeyInfoConverter converter = (SubjectPublicKeyInfoConverter)converters.get(algId.getAlgorithm()); in createKey() 165 …hrow new IOException("algorithm identifier in public key not recognised: " + algId.getAlgorithm()); in createKey() 197 … DomainParameters dhParams = DomainParameters.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters() 231 DHParameter params = DHParameter.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters() 267 ASN1Encodable de = keyInfo.getAlgorithm().getParameters(); in getPublicKeyParameters() 285 … X962Parameters params = X962Parameters.getInstance(keyInfo.getAlgorithm().getParameters()); in getPublicKeyParameters()
|