Home
last modified time | relevance | path

Searched refs:encryptedData (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DEncryptedData.java31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument
32 Preconditions.checkNotNull(encryptedData); in EncryptedData()
34 mEncryptedData = encryptedData; in EncryptedData()
DWifiConfigStoreEncryptionUtil.java85 EncryptedData encryptedData = null; in encrypt() local
91 encryptedData = new EncryptedData(cipher.doFinal(data), cipher.getIV()); in encrypt()
107 return encryptedData; in encrypt()
116 public @Nullable byte[] decrypt(@NonNull EncryptedData encryptedData) { in decrypt() argument
120 GCMParameterSpec spec = new GCMParameterSpec(GCM_TAG_LENGTH, encryptedData.getIv()); in decrypt()
124 decryptedData = cipher.doFinal(encryptedData.getEncryptedData()); in decrypt()
DXmlUtil.java396 EncryptedData encryptedData = null; in writePreSharedKeyToXml() local
399 encryptedData = encryptionUtil.encrypt(preSharedKey.getBytes()); in writePreSharedKeyToXml()
400 if (encryptedData == null) { in writePreSharedKeyToXml()
406 if (encryptedData != null) { in writePreSharedKeyToXml()
408 EncryptedDataXmlUtil.writeToXml(out, encryptedData); in writePreSharedKeyToXml()
731 EncryptedData encryptedData = in parseFromXml() local
733 byte[] preSharedKeyBytes = encryptionUtil.decrypt(encryptedData); in parseFromXml()
1128 EncryptedData encryptedData = null; in writePasswordToXml() local
1131 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml()
1132 if (encryptedData == null) { in writePasswordToXml()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java122 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption() local
124 .thenReturn(encryptedData); in testPskWifiConfigurationSerializeDeserializeWithEncryption()
125 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption()
430 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() local
432 .thenReturn(encryptedData); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
433 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java814 byte[] encryptedData = new byte[0]; in testReadVersion2StoreFile()
817 random.nextBytes(encryptedData); in testReadVersion2StoreFile()
840 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
845 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...