Searched refs:keyAlgorithm (Results 1 – 5 of 5) sorted by relevance
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 52 String keyAlgorithm = originalPrivateKey.getAlgorithm(); in getPrivateKey() local 54 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); in getPrivateKey() 55 if ("RSA".equals(keyAlgorithm)) { in getPrivateKey() 60 String cacheKey = keyAlgorithm + "-" + keyLengthBits; in getPrivateKey() 63 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey() 68 } else if ("DSA".equals(keyAlgorithm)) { in getPrivateKey() 71 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey() 75 } else if ("EC".equals(keyAlgorithm)) { in getPrivateKey() 76 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); in getPrivateKey()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | TestKeyStore.java | 496 for (String keyAlgorithm : keyAlgorithms) { in build() 497 String publicAlias = aliasPrefix + "-public-" + keyAlgorithm; in build() 498 String privateAlias = aliasPrefix + "-private-" + keyAlgorithm; in build() 499 if ((keyAlgorithm.equals("EC_RSA") || keyAlgorithm.equals("DH_RSA")) in build() 501 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, null, in build() 504 } else if (keyAlgorithm.equals("DH_DSA") && signer == null && rootCa == null) { in build() 505 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, null, in build() 509 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, privateEntry, in build() 541 String keyAlgorithm, in createKeys() argument 572 if (keyAlgorithm.equals("RSA")) { in createKeys() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SignatureBenchmark.java | 70 String keyAlgorithm = signatureAlgorithm.substring(signatureAlgorithm.length() - 3 , in setUp() local 72 KeyPair keyPair = KEY_PAIRS.get(keyAlgorithm); in setUp() 74 KeyPairGenerator generator = KeyPairGenerator.getInstance(keyAlgorithm); in setUp() 76 KEY_PAIRS.put(keyAlgorithm, keyPair); in setUp()
|
D | CipherBenchmark.java | 103 String keyAlgorithm = algorithm.toString(); in setUp() local 106 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm); in setUp()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | AlgorithmId.java | 1015 String keyAlgorithm = null; in getEncAlgFromSigAlg() local 1019 keyAlgorithm = signatureAlgorithm.substring(with + 4, and); in getEncAlgFromSigAlg() 1021 keyAlgorithm = signatureAlgorithm.substring(with + 4); in getEncAlgFromSigAlg() 1023 if (keyAlgorithm.equalsIgnoreCase("ECDSA")) { in getEncAlgFromSigAlg() 1024 keyAlgorithm = "EC"; in getEncAlgFromSigAlg() 1027 return keyAlgorithm; in getEncAlgFromSigAlg()
|