Home
last modified time | relevance | path

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

12345

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
DX509SignatureUtil.java37 …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()
DKeyFactory.java37 …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/
DOperatorHelper.java237 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/
DAlgorithmParametersSpi.java122 … 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()
DKeyFactorySpi.java136 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/
DKeyGeneratorTest.java91 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()
DCipherTest.java977 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/
DPublicKeyFactory.java86 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()
DPrivateKeyFactory.java81 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/
DKeyManagerFactoryTest.java93 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()
DTrustManagerFactoryTest.java82 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/
DPKCS10CertificationRequest.java415 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/
DDefaultCMSSignatureAlgorithmNameGenerator.java175 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/
DX509SignatureUtil.java38 …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()
DBouncyCastleProvider.java324 …foConverter converter = getAsymmetricKeyInfoConverter(publicKeyInfo.getAlgorithm().getAlgorithm()); in getPublicKey()
337 … converter = getAsymmetricKeyInfoConverter(privateKeyInfo.getPrivateKeyAlgorithm().getAlgorithm()); in getPrivateKey()
DJDKDSAPublicKey.java77 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/
DCertificatePriorityComparator.java121 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/
DCryptoUpcalls.java68 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/
DKeyFactorySpi.java67 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/
DNetscapeCertRequest.java117 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/
DKeyFactorySpi.java102 ASN1ObjectIdentifier algOid = keyInfo.getPrivateKeyAlgorithm().getAlgorithm(); in generatePrivate()
121 ASN1ObjectIdentifier algOid = keyInfo.getAlgorithm().getAlgorithm(); in generatePublic()
DBCDHPublicKey.java88 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/
DAuthenticationHelperImpl.java306 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/
DKeyDerivationFunc.java42 public ASN1ObjectIdentifier getAlgorithm() in getAlgorithm() method in KeyDerivationFunc
44 return algId.getAlgorithm(); in getAlgorithm()
DEncryptionScheme.java42 public ASN1ObjectIdentifier getAlgorithm() in getAlgorithm() method in EncryptionScheme
44 return algId.getAlgorithm(); in getAlgorithm()

12345