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.java1100 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals() local
1101 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key)); in assertPrivateKeyEntryEquals()
1184 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_GetKey_NoPassword_Unencrypted_Success() local
1185 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_GetKey_NoPassword_Unencrypted_Success()
1314 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Unencrypted_Success() local
1315 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Unencrypted_Success()
1349 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Params_Unencrypted_Failure() local
1350 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(FAKE_RSA_KEY_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Params_Unencrypted_Failure()
1376 final KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success() local
1381 PrivateKey expectedKey = keyFact in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java229 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in doInBackground() local
230 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()