Home
last modified time | relevance | path

Searched refs:privKey (Results 1 – 6 of 6) sorted by relevance

/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20230/src/android/security/cts/CVE_2022_20230/
DDeviceTest.java318 PrivateKey privKey = kf.generatePrivate(new PKCS8EncodedKeySpec(PRIVATE_KEY)); in testCVE_2022_20230() local
322 mPolicyManager.installKeyPair(privKey, cert, mContext.getString(R.string.alias)); in testCVE_2022_20230()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java105 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey, "RSA"); in testCanSelectKeychainKeypairs() local
108 assertThat(mDpm.installKeyPair(null, privKey, cert, alias)).isTrue(); in testCanSelectKeychainKeypairs()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1182 final PrivateKey privKey = keyEntry.getPrivateKey(); in assertPrivateKeyEntryEquals() local
1186 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof ECKey", in assertPrivateKeyEntryEquals()
1187 privKey instanceof ECKey); in assertPrivateKeyEntryEquals()
1190 ((ECKey) privKey).getParams().getCurve()); in assertPrivateKeyEntryEquals()
1192 assertTrue("Returned PrivateKey " + privKey.getClass() + " should be instanceof RSAKey", in assertPrivateKeyEntryEquals()
1193 privKey instanceof RSAKey); in assertPrivateKeyEntryEquals()
1196 ((RSAKey) privKey).getModulus()); in assertPrivateKeyEntryEquals()
1199 assertNull("getFormat() should return null", privKey.getFormat()); in assertPrivateKeyEntryEquals()
1200 assertNull("getEncoded() should return null", privKey.getEncoded()); in assertPrivateKeyEntryEquals()
1682 PrivateKey privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DDeviceTest.java108 PrivateKey privKey = kf.generatePrivate(new PKCS8EncodedKeySpec(privateKeyByteArray)); in testOverlayButtonPresence() local
119 mComponentName, privKey, cert, mContext.getString(R.string.alias))); in testOverlayButtonPresence()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java213 final Key privKey; in doInBackground() local
233 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()
247 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java1116 Key privKey = kf.generatePrivate(new PKCS8EncodedKeySpec(keyBytes)); in getKeyManagersFromStreams() local
1124 keyStore.setKeyEntry("server", privKey, EMPTY_PASSWORD, chain); in getKeyManagersFromStreams()