Searched refs:keyFact (Results 1 – 2 of 2) sorted by relevance
1098 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals() local1099 PrivateKey expectedKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(key)); in assertPrivateKeyEntryEquals()1182 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in testKeyStore_GetKey_NoPassword_Unencrypted_Success() local1183 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() local1313 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() local1340 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() local1371 PrivateKey expectedKey = keyFact in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()[all …]
220 KeyFactory keyFact = KeyFactory.getInstance("RSA"); in doInBackground() local221 privKey = keyFact.generatePrivate(new PKCS8EncodedKeySpec(userKey.toByteArray())); in doInBackground()