Home
last modified time | relevance | path

Searched refs:importKey (Results 1 – 7 of 7) sorted by relevance

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockKeyStore.java50 when(mock.importKey(anyString(), Matchers.any(byte[].class), anyInt(), anyInt())) in createMock()
56 return importKey((String) args[0], (byte[]) args[1], (Integer) args[2], in createMock()
118 private boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() method in MockKeyStore
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java837 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_Encrypted_Success()
882 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_DeleteEntry_NonExistent_Encrypted_Success()
946 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Encrypted_Success()
971 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Encrypted_Success()
1018 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCertificateChain_SingleLength_Encrypted_Success()
1057 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCreationDate_PrivateKeyEntry_Encrypted_Success()
1077 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetCreationDate_PrivateKeyEntry_Unencrypted_Success()
1118 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_NullParams_Encrypted_Success()
1139 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_EC_NullParams_Unencrypted_Success()
1159 assertTrue(mAndroidKeyStore.importKey(Credentials.USER_PRIVATE_KEY + TEST_ALIAS_1, in testKeyStore_GetEntry_RSA_NullParams_Unencrypted_Success()
[all …]
/frameworks/base/keystore/java/android/security/
DKeyStore.java307 public boolean importKey(String keyName, byte[] key, int uid, int flags) { in importKey() method in KeyStore
449 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() method in KeyStore
452 return mBinder.importKey(alias, args, format, keyData, uid, flags, in importKey()
460 public int importKey(String alias, KeymasterArguments args, int format, byte[] keyData, in importKey() method in KeyStore
462 return importKey(alias, args, format, keyData, UID_SELF, flags, outCharacteristics); in importKey()
/frameworks/base/keystore/tests/src/android/security/
DKeyStoreTest.java407 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testImport_Success()
416 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testImport_grantedUid_Wifi_Success()
425 assertFalse(mKeyStore.importKey(TEST_KEYNAME, PRIVKEY_BYTES, Process.BLUETOOTH_UID, in testImport_ungrantedUid_Bluetooth_Failure()
435 assertFalse("Invalid DER-encoded key should not be imported", mKeyStore.importKey( in testImport_Failure_BadEncoding()
493 assertTrue("Should be able to import key for testcase", mKeyStore.importKey(TEST_KEYNAME, in testGrant_Imported_Success()
531 assertTrue("Should be able to import key for testcase", mKeyStore.importKey(TEST_KEYNAME, in testUngrant_Imported_Success()
665 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testGetmtime_Success()
696 assertTrue("Should be able to import key when unlocked", mKeyStore.importKey(TEST_KEYNAME, in testGetmtime_NonExist_Failure()
839 return mKeyStore.importKey(name, args, KeymasterDefs.KM_KEY_FORMAT_RAW, key, 0, in importAesKey()
/frameworks/base/core/java/android/security/
DIKeystoreService.aidl64 int importKey(String alias, in KeymasterArguments arguments, int format, in importKey() method
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreSpi.java524 int errorCode = mKeyStore.importKey( in setPrivateKeyEntry()
723 int errorCode = mKeyStore.importKey( in setSecretKeyEntry()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java478 ret = mKeyStore.importKey(privKeyName, privKeyData, Process.WIFI_UID, in installKeys()