/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | EncryptedData.java | 27 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()
|
D | WifiConfigStoreEncryptionUtil.java | 96 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()
|
D | XmlUtil.java | 435 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/ |
D | CarServiceUtilsTest.java | 383 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/ |
D | CarServiceUtils.java | 849 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/ |
D | RemoteAccessStorage.java | 29 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/ |
D | XmlUtilTest.java | 138 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/ |
D | NetworkListStoreDataTest.java | 50 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()
|
D | SoftApStoreDataTest.java | 45 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()
|
D | WifiConfigStoreTest.java | 40 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/ |
D | BluetoothKeystoreService.java | 584 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/ |
D | keystore.proto | 23 message EncryptedData { message
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiConfigStore.java | 35 import com.android.server.wifi.util.EncryptedData;
|
/packages/modules/Wifi/service/tests/wifitests/ |
D | Android.bp | 1199 "com.android.server.wifi.util.EncryptedData", 1200 "com.android.server.wifi.util.EncryptedData$*", 1201 "com.android.server.wifi.util.EncryptedData.**",
|