/cts/tests/tests/keystore/src/android/keystore/cts/ |
TestUtils.java | 39 import java.security.PrivateKey; 88 static void assertKeyPairSelfConsistent(PublicKey publicKey, PrivateKey privateKey) { 90 assertNotNull(privateKey); 91 assertEquals(publicKey.getAlgorithm(), privateKey.getAlgorithm()); 98 + privateKey.getClass().getName(), 99 privateKey instanceof ECKey); 102 ((ECKey) publicKey).getParams(), ((ECKey) privateKey).getParams()); 108 + privateKey.getClass().getName(), 109 privateKey instanceof RSAKey) [all...] |
SignatureTest.java | 23 import java.security.PrivateKey; 490 PrivateKey keystorePrivateKey = key.getKeystoreBackedKeyPair().getPrivate(); [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiEnterpriseConfig.java | 29 import java.security.PrivateKey; 144 private PrivateKey mClientPrivateKey; 793 * @param privateKey a PrivateKey instance for the end certificate. 797 public void setClientKeyEntry(PrivateKey privateKey, X509Certificate clientCertificate) { 802 setClientKeyEntryWithCertificateChain(privateKey, clientCertificates); 813 * @param privateKey a PrivateKey instance for the end certificate. 819 public void setClientKeyEntryWithCertificateChain(PrivateKey privateKey [all...] |
/libcore/ojluni/src/main/java/java/security/ |
KeyStore.java | 50 * <p> This type of entry holds a cryptographic {@code PrivateKey}, 136 * PrivateKey myPrivateKey = pkEntry.getPrivateKey(); 204 * @see java.security.PrivateKey 270 * (such as a {@code PrivateKey}). 490 * A {@code KeyStore} entry that holds a {@code PrivateKey} 497 private final PrivateKey privKey; 503 * {@code PrivateKey} and corresponding certificate chain. 508 * @param privateKey the {@code PrivateKey} 516 * {@code privateKey} or {@code chain [all...] |
/tools/apksig/src/main/java/com/android/apksig/ |
DefaultApkSignerEngine.java | 33 import java.security.PrivateKey; 165 v1SignerConfig.privateKey = signerConfig.getPrivateKey(); 186 v2SignerConfig.privateKey = signerConfig.getPrivateKey(); 788 private final PrivateKey mPrivateKey; 793 PrivateKey privateKey, 796 mPrivateKey = privateKey; 810 public PrivateKey getPrivateKey() { 827 private final PrivateKey mPrivateKey [all...] |
/external/conscrypt/openjdk-integ-tests/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 29 import java.security.PrivateKey; 239 PrivateKey privateKey = km.getPrivateKey(alias); 241 String keyAlgName = privateKey.getAlgorithm(); 252 assertEquals(keyType, privateKeyEntry.getPrivateKey(), privateKey);
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
KeyManagerFactoryTest.java | 23 import java.security.PrivateKey; 233 PrivateKey privateKey = km.getPrivateKey(alias); 235 String keyAlgName = privateKey.getAlgorithm(); 248 privateKeyEntry.getPrivateKey(), privateKey);
|
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/ |
KeyChainTestActivity.java | 34 import java.security.PrivateKey; 274 @Override public PrivateKey getPrivateKey(String alias) { 277 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTestActivity.this, 279 log("privateKey=" + privateKey); 280 return privateKey;
|
/system/extras/verity/ |
Utils.java | 29 import java.security.PrivateKey; 165 static PrivateKey loadDERPrivateKey(byte[] der) throws Exception { 179 static PrivateKey loadPEMPrivateKey(byte[] pem) throws Exception { 184 static PrivateKey loadPEMPrivateKeyFromFile(String keyFname) throws Exception { 188 static PrivateKey loadDERPrivateKeyFromFile(String keyFname) throws Exception { 228 } else if (key instanceof PrivateKey) { 274 static byte[] sign(PrivateKey privateKey, byte[] input) throws Exception { 275 Signature signer = Signature.getInstance(getSignatureAlgorithm(privateKey)); 276 signer.initSign(privateKey); [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
SignatureTestMD2withRSA.java | 21 import java.security.PrivateKey; 142 protected void engineInitSign(PrivateKey privateKey)
|
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/ |
VpnTests.java | 181 String privateKey = ""; 186 privateKey = Credentials.USER_PRIVATE_KEY + profile.ipsecUserCert; 198 Log.v(TAG, "privateKey: \n" + ((privateKey == null) ? "" : privateKey));
|
/build/make/tools/signtos/ |
SignTos.java | 40 import java.security.PrivateKey; 124 private static PrivateKey readPrivateKey(File file) throws IOException, 152 * Tries to load a JSE Provider by class name. This is for custom PrivateKey 223 private static void signWholeFile(InputStream input, OutputStream output, PrivateKey signingKey) 259 " privatekey.pk8 " + 286 * Should only be "<privatekey> <input> <output>" left. 301 PrivateKey privateKey = readPrivateKey(new File(keyFilename)); 306 SignTos.signWholeFile(input, output, privateKey);
|
/external/libcups/cups/ |
http-private.h | 120 extern SecCertificateRef SecGenerateSelfSignedCertificate(CFArrayRef subject, CFDictionaryRef parameters, SecKeyRef publicKey, SecKeyRef privateKey); 121 extern SecIdentityRef SecIdentityCreate(CFAllocatorRef allocator, SecCertificateRef certificate, SecKeyRef privateKey);
|
/external/tpm2/ |
CpriRSA.c | 47 pAssert(key != NULL && key->privateKey != NULL && key->publicKey != NULL); 64 || BN_bin2bn(key->privateKey->buffer, key->privateKey->size, bnP) == NULL) 105 BN_bn2bin(bnD, &key->privateKey->buffer[fill]); 106 memset(key->privateKey->buffer, 0, fill); 109 key->privateKey->size = key->publicKey->size; 317 key->privateKey->size, key->privateKey->buffer, [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
ConscryptFileDescriptorSocket.java | 32 import java.security.PrivateKey; 789 * Sets the {@link PrivateKey} to be used for TLS Channel ID by this client socket. 793 * @param privateKey private key (enables TLS Channel ID) or {@code null} for no key (disables 801 public void setChannelIdPrivateKey(PrivateKey privateKey) { 814 if (privateKey == null) { 821 if (privateKey instanceof ECKey) { 822 ecParams = ((ECKey) privateKey).getParams(); 830 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); [all...] |
OpenSSLSignature.java | 25 import java.security.PrivateKey; 209 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { 210 initInternal(OpenSSLKey.fromPrivateKey(privateKey), true);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
KeyChainTest.java | 50 import java.security.PrivateKey; 431 public PrivateKey getPrivateKey(String alias) { 434 PrivateKey privateKey = KeyChain.getPrivateKey(KeyChainTest.this, alias); 435 Log.d(TAG, "privateKey = " + privateKey); 436 return privateKey;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
ECUtil.java | 5 import java.security.PrivateKey; 227 PrivateKey key) 264 PrivateKey privateKey = BouncyCastleProvider.getPrivateKey(PrivateKeyInfo.getInstance(bytes)); 266 if (privateKey instanceof java.security.interfaces.ECPrivateKey) 268 return ECUtil.generatePrivateKeyParameter(privateKey);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyFactoryTest.java | 13 import java.security.PrivateKey; 240 PrivateKey privateKey = factory.generatePrivate(keySpec); 241 assertNotNull(privateKey); 242 assertTrue(Arrays.equals(key.getEncoded(), privateKey.getEncoded())); 432 protected PrivateKey engineGeneratePrivate(KeySpec keySpec) 524 static class TestPrivateKey implements PrivateKey {
|
/external/conscrypt/android-stub/src/main/java/com/android/org/conscrypt/ |
OpenSSLSocketImpl.java | 25 import java.security.PrivateKey; 183 public void setChannelIdPrivateKey(PrivateKey privateKey) {
|
/external/conscrypt/android-stub/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
OpenSSLSocketImpl.java | 25 import java.security.PrivateKey; 184 public void setChannelIdPrivateKey(PrivateKey privateKey) {
|
/prebuilts/jdk/jdk8/darwin-x86/jre/lib/ext/ |
sunec.jar | |
/prebuilts/jdk/jdk8/linux-x86/jre/lib/ext/ |
sunec.jar | |
/external/conscrypt/android/src/main/java/org/conscrypt/ |
KitKatPlatformOpenSSLSocketImplAdapter.java | 27 import java.security.PrivateKey; 416 public void setChannelIdPrivateKey(PrivateKey privateKey) { 417 delegate.setChannelIdPrivateKey(privateKey);
|
PreKitKatPlatformOpenSSLSocketImplAdapter.java | 27 import java.security.PrivateKey; 416 public void setChannelIdPrivateKey(PrivateKey privateKey) { 417 delegate.setChannelIdPrivateKey(privateKey);
|