Home
last modified time | relevance | path

Searched refs:keyFact (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1098 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals() local
1099 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key)); in assertPrivateKeyEntryEquals()
1182 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_GetKey_NoPassword_Unencrypted_Success() local
1183 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_GetKey_NoPassword_Unencrypted_Success()
1312 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Unencrypted_Success() local
1313 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Unencrypted_Success()
1339 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Params_Unencrypted_Failure() local
1340 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Params_Unencrypted_Failure()
1366 final KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success() local
1371 PrivateKey expectedKey = keyFact in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java220 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in doInBackground() local
221 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()