Home
last modified time | relevance | path

Searched refs:getPrivateKey (Results 1 – 25 of 96) sorted by relevance

1234

/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DKeyFactoryTestRSA.java72 PrivateKey privateKey = getPrivateKey(); in getEncodedFailsWhenCrtValuesMissing()
97 factory.getKeySpec(new TestPrivateKey(DefaultKeys.getPrivateKey("RSA"), "Invalid"), in testInvalidKeySpec()
105 factory.getKeySpec(new TestPrivateKey(DefaultKeys.getPrivateKey("RSA"), "Invalid"), in testInvalidKeySpec()
123 PrivateKey privatekey = getPrivateKey(); in javaSerialization()
139 new KeyPair(DefaultKeys.getPublicKey(algorithmName), getPrivateKey()) in getKeys()
147 private PrivateKey getPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { in getPrivateKey() method in KeyFactoryTestRSA
148 RSAPrivateCrtKey crtKey = (RSAPrivateCrtKey) DefaultKeys.getPrivateKey(algorithmName); in getPrivateKey()
DKeyFactoryTestEC.java66 DefaultKeys.getPrivateKey("EC") in getKeys()
70 new TestPrivateKey(DefaultKeys.getPrivateKey("EC")) in getKeys()
74 new TestECPrivateKey((ECPrivateKey)DefaultKeys.getPrivateKey("EC")) in getKeys()
DKeyFactoryTestXDH.java53 DefaultKeys.getPrivateKey("XDH") in getKeys()
57 new TestPrivateKey(DefaultKeys.getPrivateKey("XDH")) in getKeys()
DKeyFactoryTestRSACrt.java61 PrivateKey privateKey = DefaultKeys.getPrivateKey("RSA"); in testExtraBufferSpace_Private()
74 PrivateKey privateKey = DefaultKeys.getPrivateKey("RSA"); in javaSerialization()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DKeyFactoryTestRSA.java75 PrivateKey privateKey = getPrivateKey(); in getEncodedFailsWhenCrtValuesMissing()
100 factory.getKeySpec(new TestPrivateKey(DefaultKeys.getPrivateKey("RSA"), "Invalid"), in testInvalidKeySpec()
108 factory.getKeySpec(new TestPrivateKey(DefaultKeys.getPrivateKey("RSA"), "Invalid"), in testInvalidKeySpec()
126 PrivateKey privatekey = getPrivateKey(); in javaSerialization()
141 return Arrays.asList(new KeyPair(DefaultKeys.getPublicKey(algorithmName), getPrivateKey())); in getKeys()
148 private PrivateKey getPrivateKey() throws NoSuchAlgorithmException, InvalidKeySpecException { in getPrivateKey() method in KeyFactoryTestRSA
149 RSAPrivateCrtKey crtKey = (RSAPrivateCrtKey) DefaultKeys.getPrivateKey(algorithmName); in getPrivateKey()
DKeyFactoryTestEC.java68 new KeyPair(DefaultKeys.getPublicKey("EC"), DefaultKeys.getPrivateKey("EC")), in getKeys()
70 new TestPrivateKey(DefaultKeys.getPrivateKey("EC"))), in getKeys()
72 new TestECPrivateKey((ECPrivateKey) DefaultKeys.getPrivateKey("EC")))); in getKeys()
DKeyFactoryTestXDH.java57 DefaultKeys.getPrivateKey("XDH") in getKeys()
61 new TestPrivateKey(DefaultKeys.getPrivateKey("XDH")) in getKeys()
DKeyFactoryTestRSACrt.java65 PrivateKey privateKey = DefaultKeys.getPrivateKey("RSA"); in testExtraBufferSpace_Private()
78 PrivateKey privateKey = DefaultKeys.getPrivateKey("RSA"); in javaSerialization()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/
DTestKeyStore.java222 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
230 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
236 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
243 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
253 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
260 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
266 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
278 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
576 caKey = signer.getPrivateKey(); in createKeys()
635 privateKey = privateEntry.getPrivateKey(); in createKeys()
[all …]
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/
DTestKeyStore.java220 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
228 .signer(ROOT_CA.getPrivateKey("RSA", "RSA")) in initCerts()
234 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
241 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
251 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
258 .signer(INTERMEDIATE_CA_EC.getPrivateKey("EC", "RSA")) in initCerts()
264 .signer(INTERMEDIATE_CA.getPrivateKey("RSA", "RSA")) in initCerts()
276 .signer(rootCa2.getPrivateKey("RSA", "RSA")) in initCerts()
573 caKey = signer.getPrivateKey(); in createKeys()
632 privateKey = privateEntry.getPrivateKey(); in createKeys()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java171 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509TrustManager()
219 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_intermediate()
253 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_keyOnly()
254 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); in test_TrustManagerFactory_keyOnly()
295 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) in test_TrustManagerFactory_extendedKeyUsage()
300 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm); in test_TrustManagerFactory_extendedKeyUsage()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/net/ssl/
DTrustManagerFactoryTest.java175 PrivateKeyEntry pke = getTestKeyStore().getPrivateKey(keyAlgName, sigAlgName); in test_X509TrustManager()
223 PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_intermediate()
257 KeyStore.PrivateKeyEntry pke = getTestKeyStore().getPrivateKey("RSA", "RSA"); in test_TrustManagerFactory_keyOnly()
258 ks.setKeyEntry("key", pke.getPrivateKey(), "pw".toCharArray(), pke.getCertificateChain()); in test_TrustManagerFactory_keyOnly()
299 .signer(intermediateCa.getPrivateKey("RSA", "RSA")) in test_TrustManagerFactory_extendedKeyUsage()
304 PrivateKeyEntry privateKeyEntry = leaf.getPrivateKey(algorithm, algorithm); in test_TrustManagerFactory_extendedKeyUsage()
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
DForwardingX509ExtendedKeyManager.java63 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in ForwardingX509ExtendedKeyManager
64 return delegate.getPrivateKey(alias); in getPrivateKey()
DRandomPrivateKeyX509ExtendedKeyManager.java44 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in RandomPrivateKeyX509ExtendedKeyManager
45 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
DForwardingX509ExtendedKeyManager.java61 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in ForwardingX509ExtendedKeyManager
62 return delegate.getPrivateKey(alias); in getPrivateKey()
DRandomPrivateKeyX509ExtendedKeyManager.java42 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() method in RandomPrivateKeyX509ExtendedKeyManager
43 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey()
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java108 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8);
110 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8);
129 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
133 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); in testKnownAnswer()
507 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() method in ECDHKeyAgreementTest
519 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() method in ECDHKeyAgreementTest
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DECDHKeyAgreementTest.java110 KAT_PRIVATE_KEY1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8);
112 KAT_PRIVATE_KEY2 = getPrivateKey(KAT_PRIVATE_KEY2_PKCS8);
131 ECPrivateKey privateKey1 = getPrivateKey(KAT_PRIVATE_KEY1_PKCS8, keyFactoryProvider1); in testKnownAnswer()
135 getPrivateKey(KAT_PRIVATE_KEY2_PKCS8, keyFactoryProvider2); in testKnownAnswer()
509 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey, Provider provider) in getPrivateKey() method in ECDHKeyAgreementTest
521 private static ECPrivateKey getPrivateKey(byte[] pkcs8EncodedKey) in getPrivateKey() method in ECDHKeyAgreementTest
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLECPrivateKey.java185 return getPrivateKey(); in getS()
188 private BigInteger getPrivateKey() { in getPrivateKey() method in OpenSSLECPrivateKey
213 if (!getPrivateKey().equals(other.getS())) { in equals()
DOpenSSLKey.java313 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() method in OpenSSLKey
324 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey() method in OpenSSLKey
340 return key.getPrivateKey(); in getPrivateKey()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLECPrivateKey.java186 return getPrivateKey(); in getS()
189 private BigInteger getPrivateKey() { in getPrivateKey() method in OpenSSLECPrivateKey
214 if (!getPrivateKey().equals(other.getS())) { in equals()
DOpenSSLKey.java318 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() method in OpenSSLKey
329 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey() method in OpenSSLKey
345 return key.getPrivateKey(); in getPrivateKey()
/external/conscrypt/common/src/test/java/org/conscrypt/
DTrustManagerImplTest.java55 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testLearnIntermediate()
90 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testDuplicateInChain()
106 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testGetFullChain()
130 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServerHostname().getPrivateKey("RSA", "RSA"); in testHttpsEndpointIdentification()
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/
DTrustManagerImplTest.java59 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testLearnIntermediate()
94 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testDuplicateInChain()
110 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in testGetFullChain()
134 KeyStore.PrivateKeyEntry pke = TestKeyStore.getServerHostname().getPrivateKey("RSA", "RSA"); in testHttpsEndpointIdentification()
/external/conscrypt/benchmark-jmh/src/jmh/java/org/conscrypt/
DOpenJdkEngineFactory.java231 .trustManager((X509Certificate[]) server.getPrivateKey("RSA", "RSA") in newNettyClientContext()
245 PrivateKeyEntry server = TestKeyStore.getServer().getPrivateKey("RSA", "RSA"); in newNettyServerContext()
248 .forServer(server.getPrivateKey(), in newNettyServerContext()

1234