Home
last modified time | relevance | path

Searched refs:EncryptedData (Results 1 – 14 of 14) sorted by relevance

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DEncryptedData.java27 public class EncryptedData { class
31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() method in EncryptedData
48 if (!(other instanceof EncryptedData)) return false; in equals()
49 EncryptedData otherEncryptedData = (EncryptedData) other; in equals()
DWifiConfigStoreEncryptionUtil.java96 public @Nullable EncryptedData encrypt(byte[] data) { in encrypt()
100 EncryptedData encryptedData = null; in encrypt()
104 encryptedData = new EncryptedData(mEncryptCipher.doFinal(data), in encrypt()
128 public @Nullable byte[] decrypt(@NonNull EncryptedData encryptedData) { in decrypt()
DXmlUtil.java435 EncryptedData[] encryptedDataArray = new EncryptedData[len]; in writeWepKeysToXml()
438 encryptedDataArray[i] = new EncryptedData(new byte[0], new byte[0]); in writeWepKeysToXml()
467 EncryptedData encryptedData = null; in writePreSharedKeyToXml()
470 encryptedData = new EncryptedData(wifiConfig.getEncryptedPreSharedKey(), in writePreSharedKeyToXml()
526 EncryptedData encryptedData = null; in writeEncryptedBytesToXml()
753 final List<EncryptedData> encryptedDataList = in populateWepKeysFromXmlValue()
755 EncryptedData emptyData = new EncryptedData(new byte[0], new byte[0]); in populateWepKeysFromXmlValue()
830 EncryptedData encryptedData = in readEncrytepdBytesFromXml()
1096 EncryptedData encryptedData = in parseFromXml()
1581 EncryptedData encryptedData = null; in writePasswordToXml()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarServiceUtilsTest.java383 CarServiceUtils.EncryptedData data = CarServiceUtils.encryptData(inputBytes, in testEncryptDecryptData()
400 CarServiceUtils.EncryptedData dataOne = CarServiceUtils.encryptData(inputBytes, in testEncryptData_sameDataDifferentIv()
402 CarServiceUtils.EncryptedData dataTwo = CarServiceUtils.encryptData(inputBytes, in testEncryptData_sameDataDifferentIv()
418 CarServiceUtils.EncryptedData one = new CarServiceUtils.EncryptedData(dataOne, ivOne); in testEncryptedDataEquals()
419 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals()
431 CarServiceUtils.EncryptedData one = new CarServiceUtils.EncryptedData(dataOne, ivOne); in testEncryptedDataEquals_notEqualData()
432 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals_notEqualData()
444 CarServiceUtils.EncryptedData one = new CarServiceUtils.EncryptedData(dataOne, ivOne); in testEncryptedDataEquals_notEqualIv()
445 CarServiceUtils.EncryptedData two = new CarServiceUtils.EncryptedData(dataTwo, ivTwo); in testEncryptedDataEquals_notEqualIv()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java849 public static EncryptedData encryptData(byte[] data, String keyAlias) { in encryptData()
859 return new EncryptedData(cipher.doFinal(data), cipher.getIV()); in encryptData()
872 public static byte[] decryptData(EncryptedData data, String keyAlias) { in decryptData()
893 public static final class EncryptedData { class in CarServiceUtils
897 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() method in CarServiceUtils.EncryptedData
913 if (!(other instanceof EncryptedData)) return false; in equals()
914 EncryptedData data = (EncryptedData) other; in equals()
/packages/services/Car/service/src/com/android/car/remoteaccess/
DRemoteAccessStorage.java29 import com.android.car.CarServiceUtils.EncryptedData;
171 byte[] data = CarServiceUtils.decryptData(new EncryptedData(cursor.getBlob(1), in queryClientIdEntry()
204 byte[] data = CarServiceUtils.decryptData(new EncryptedData(cursor.getBlob(1), in queryClientIdEntries()
223 EncryptedData data; in replaceEntry()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java138 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption()
157 EncryptedData encryptedData = new EncryptedData(new byte[]{(byte) i}, in testWepWifiConfigurationSerializeDeserializeWithEncryption()
492 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
914 EncryptedData encryptedData = new EncryptedData(new byte[]{1, 2, 3, 4}, in testConfigStoreWithEncryptedPreSharedKey()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkListStoreDataTest.java50 import com.android.server.wifi.util.EncryptedData;
578 private Map<EncryptedData, byte[]> mEncryptedDataMap = new HashMap<>();
588 public EncryptedData answer(byte[] data) { in setUp()
589 EncryptedData encryptedData = new EncryptedData(data, data); in setUp()
595 public byte[] answer(EncryptedData data) { in setUp()
DSoftApStoreDataTest.java45 import com.android.server.wifi.util.EncryptedData;
290 private Map<EncryptedData, byte[]> mEncryptedDataMap = new HashMap<>();
304 public EncryptedData answer(byte[] data) { in setUp()
305 EncryptedData encryptedData = new EncryptedData(data, data); in setUp()
311 public byte[] answer(EncryptedData data) { in setUp()
DWifiConfigStoreTest.java40 import com.android.server.wifi.util.EncryptedData;
254 .thenReturn(new EncryptedData(new byte[0], new byte[0])); in setupMocks()
255 when(mEncryptionUtil.decrypt(any(EncryptedData.class))) in setupMocks()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/bluetoothKeystore/
DBluetoothKeystoreService.java584 BluetoothKeystoreProto.EncryptedData protobuf; in encrypt()
599 BluetoothKeystoreProto.EncryptedData.newBuilder() in encrypt()
635 BluetoothKeystoreProto.EncryptedData protobuf; in decrypt()
646 protobuf = BluetoothKeystoreProto.EncryptedData.parser().parseFrom(encryptedDataBytes); in decrypt()
/packages/modules/Bluetooth/android/app/proto/
Dkeystore.proto23 message EncryptedData { message
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java35 import com.android.server.wifi.util.EncryptedData;
/packages/modules/Wifi/service/tests/wifitests/
DAndroid.bp1199 "com.android.server.wifi.util.EncryptedData",
1200 "com.android.server.wifi.util.EncryptedData$*",
1201 "com.android.server.wifi.util.EncryptedData.**",