/libcore/support/src/test/java/libcore/javax/net/ssl/ |
RandomPrivateKeyX509ExtendedKeyManager.java | 52 String keyAlgorithm = originalPrivateKey.getAlgorithm(); 54 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); 55 if ("RSA".equals(keyAlgorithm)) { 60 String cacheKey = keyAlgorithm + "-" + keyLengthBits; 63 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); 68 } else if ("DSA".equals(keyAlgorithm)) { 71 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm); 75 } else if ("EC".equals(keyAlgorithm)) { 76 KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance(keyAlgorithm);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
CryptoUpcalls.java | 66 String keyAlgorithm = javaKey.getAlgorithm(); 67 if ("RSA".equals(keyAlgorithm)) { 73 } else if ("EC".equals(keyAlgorithm)) { 134 String keyAlgorithm = javaKey.getAlgorithm(); 135 if (!"RSA".equals(keyAlgorithm)) { 136 System.err.println("Unexpected key type: " + keyAlgorithm);
|
KeyManagerImpl.java | 166 for (String keyAlgorithm : keyTypes) { 167 if (keyAlgorithm == null) { 172 int index = keyAlgorithm.indexOf('_'); 176 sigAlgorithm = keyAlgorithm.substring(index + 1); 177 keyAlgorithm = keyAlgorithm.substring(0, index); 180 if (!certKeyAlg.equals(keyAlgorithm)) {
|
OpenSSLKey.java | 213 String keyAlgorithm = privateKey.getAlgorithm(); 214 if ("RSA".equals(keyAlgorithm)) { 216 } else if ("EC".equals(keyAlgorithm)) { 219 throw new InvalidKeyException("Unsupported key algorithm: " + keyAlgorithm);
|
/libcore/benchmarks/src/benchmarks/regression/ |
SignatureBenchmark.java | 70 String keyAlgorithm = signatureAlgorithm.substring(signatureAlgorithm.length() - 3 , 72 KeyPair keyPair = KEY_PAIRS.get(keyAlgorithm); 74 KeyPairGenerator generator = KeyPairGenerator.getInstance(keyAlgorithm); 76 KEY_PAIRS.put(keyAlgorithm, keyPair);
|
CipherBenchmark.java | 103 String keyAlgorithm = algorithm.toString(); 106 KeyGenerator generator = KeyGenerator.getInstance(keyAlgorithm);
|
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 450 for (String keyAlgorithm : keyAlgorithms) { 451 String publicAlias = aliasPrefix + "-public-" + keyAlgorithm; 452 String privateAlias = aliasPrefix + "-private-" + keyAlgorithm; 453 if ((keyAlgorithm.equals("EC_RSA") || keyAlgorithm.equals("DH_RSA")) 455 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, null, 458 } else if (keyAlgorithm.equals("DH_DSA") && signer == null && rootCa == null) { 459 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, null, 463 createKeys(keyStore, keyAlgorithm, publicAlias, privateAlias, privateEntry, 495 String keyAlgorithm, [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreProvider.java | 176 @NonNull @KeyProperties.KeyAlgorithmEnum String keyAlgorithm, 180 KeyFactory keyFactory = KeyFactory.getInstance(keyAlgorithm); 184 "Failed to obtain " + keyAlgorithm + " KeyFactory", e); 188 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { 190 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { 194 + keyAlgorithm); 201 String keyAlgorithm = publicKey.getAlgorithm(); 202 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { 205 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { 210 + keyAlgorithm); [all...] |
AndroidKeyStoreSpi.java | 289 String keyAlgorithm = key.getAlgorithm(); 291 if (KeyProperties.KEY_ALGORITHM_EC.equalsIgnoreCase(keyAlgorithm)) { 304 } else if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) { 333 throw new KeyStoreException("Unsupported key algorithm: " + keyAlgorithm); 466 KeyProperties.KeyAlgorithm.toKeymasterAsymmetricKeyAlgorithm( 628 KeyProperties.KeyAlgorithm.toKeymasterSecretKeyAlgorithm(key.getAlgorithm()); 639 KeyProperties.KeyAlgorithm.toKeymasterDigest(key.getAlgorithm()); [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
TestUtils.java | 92 String keyAlgorithm = publicKey.getAlgorithm(); 93 if ("EC".equalsIgnoreCase(keyAlgorithm)) { 103 } else if ("RSA".equalsIgnoreCase(keyAlgorithm)) { 113 fail("Unsuported key algorithm: " + keyAlgorithm); 554 static KeyPair getKeyPairForKeyAlgorithm(String keyAlgorithm, Iterable<KeyPair> keyPairs) { 556 if (keyAlgorithm.equalsIgnoreCase(keyPair.getPublic().getAlgorithm())) { 560 throw new IllegalArgumentException("No KeyPair for key algorithm " + keyAlgorithm); 563 static Key getKeyForKeyAlgorithm(String keyAlgorithm, Iterable<? extends Key> keys) { 565 if (keyAlgorithm.equalsIgnoreCase(key.getAlgorithm())) { 569 throw new IllegalArgumentException("No Key for key algorithm " + keyAlgorithm); [all...] |
MacTest.java | 549 String macAlgorithm, String keyAlgorithm, KeyProtection keyProtection) 551 SecretKey key = importDefaultKatKey(keyAlgorithm, keyProtection); 562 String macAlgorithm, String keyAlgorithm, KeyProtection keyProtection) 564 SecretKey key = importDefaultKatKey(keyAlgorithm, keyProtection); 569 + ", key algorithm: " + keyAlgorithm); 573 private SecretKey getDefaultKatKey(String keyAlgorithm) { 574 return new SecretKeySpec(KAT_KEY, keyAlgorithm); 577 private SecretKey importDefaultKatKey(String keyAlgorithm) throws Exception { 579 keyAlgorithm, 584 String keyAlgorithm, KeyProtection keyProtection) throws Exception [all...] |
CipherTest.java | [all...] |
SignatureTest.java | [all...] |
RSASignatureTest.java | 47 String keyAlgorithm = TestUtils.getSignatureAlgorithmKeyAlgorithm(algorithm); 48 if (KeyProperties.KEY_ALGORITHM_RSA.equalsIgnoreCase(keyAlgorithm)) {
|
/build/tools/signapk/src/com/android/signapk/ |
SignApk.java | [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
AlgorithmId.java | [all...] |
/libcore/ojluni/src/main/java/sun/security/ssl/ |
ServerHandshaker.java | [all...] |
X509KeyManagerImpl.java | 262 final String keyAlgorithm; 275 keyAlgorithm = algorithm; 278 keyAlgorithm = algorithm.substring(0, k); 284 if (!chain[0].getPublicKey().getAlgorithm().equals(keyAlgorithm)) {
|
HandshakeMessage.java | [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/ |
PKCS10CertificationRequest.java | 437 String keyAlgorithm = (String)keyAlgorithms.get(keyAlg.getAlgorithm()); 441 return KeyFactory.getInstance(keyAlgorithm).generatePublic(xspec); 445 return KeyFactory.getInstance(keyAlgorithm, provider).generatePublic(xspec);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/ |
PKCS12KeyStoreSpi.java | 148 private ASN1ObjectIdentifier keyAlgorithm; 193 ASN1ObjectIdentifier keyAlgorithm, 196 this.keyAlgorithm = keyAlgorithm; [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 251 assertEquals(TestKeyStore.keyAlgorithm(keyType), keyAlgName);
|
TrustManagerFactoryTest.java | 153 String keyAlgName = TestKeyStore.keyAlgorithm(keyType);
|
/frameworks/base/core/java/android/util/apk/ |
ApkSignatureSchemeV2Verifier.java | 295 String keyAlgorithm = getSignatureAlgorithmJcaKeyAlgorithm(bestSigAlgorithm); 303 KeyFactory.getInstance(keyAlgorithm) [all...] |
/prebuilts/tools/common/m2/repository/io/netty/netty-handler/4.1.0.CR3/ |
netty-handler-4.1.0.CR3.jar | |