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/
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()
DEncryptedData.java31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument
32 Preconditions.checkNotNull(encryptedData); in EncryptedData()
34 mEncryptedData = encryptedData; in EncryptedData()
DXmlUtil.java392 EncryptedData encryptedData = null; in writePreSharedKeyToXml() local
395 encryptedData = encryptionUtil.encrypt(preSharedKey.getBytes()); in writePreSharedKeyToXml()
396 if (encryptedData == null) { in writePreSharedKeyToXml()
402 if (encryptedData != null) { in writePreSharedKeyToXml()
404 EncryptedDataXmlUtil.writeToXml(out, encryptedData); in writePreSharedKeyToXml()
722 EncryptedData encryptedData = in parseFromXml() local
724 byte[] preSharedKeyBytes = encryptionUtil.decrypt(encryptedData); in parseFromXml()
1100 EncryptedData encryptedData = null; in writePasswordToXml() local
1103 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml()
1104 if (encryptedData == null) { in writePasswordToXml()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java121 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption() local
123 .thenReturn(encryptedData); in testPskWifiConfigurationSerializeDeserializeWithEncryption()
124 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption()
433 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() local
435 .thenReturn(encryptedData); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
436 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java821 byte[] encryptedData = new byte[0]; in testReadVersion2StoreFile()
824 random.nextBytes(encryptedData); in testReadVersion2StoreFile()
847 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
852 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt112208 Ljavax/crypto/EncryptedPrivateKeyInfo;->encryptedData:[B