/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiConfigStoreEncryptionUtil.java | 85 EncryptedData encryptedData = null; in encrypt() local 91 encryptedData = new EncryptedData(cipher.doFinal(data), cipher.getIV()); in encrypt() 109 return encryptedData; in encrypt() 118 public @Nullable byte[] decrypt(@NonNull EncryptedData encryptedData) { in decrypt() argument 122 GCMParameterSpec spec = new GCMParameterSpec(GCM_TAG_LENGTH, encryptedData.getIv()); in decrypt() 126 decryptedData = cipher.doFinal(encryptedData.getEncryptedData()); in decrypt()
|
D | XmlUtil.java | 413 EncryptedData encryptedData = null; in writePreSharedKeyToXml() local 416 encryptedData = encryptionUtil.encrypt(preSharedKey.getBytes()); in writePreSharedKeyToXml() 417 if (encryptedData == null) { in writePreSharedKeyToXml() 423 if (encryptedData != null) { in writePreSharedKeyToXml() 425 EncryptedDataXmlUtil.writeToXml(out, encryptedData); in writePreSharedKeyToXml() 859 EncryptedData encryptedData = in parseFromXml() local 861 byte[] preSharedKeyBytes = encryptionUtil.decrypt(encryptedData); in parseFromXml() 1287 EncryptedData encryptedData = null; in writePasswordToXml() local 1290 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml() 1291 if (encryptedData == null) { in writePasswordToXml() [all …]
|
D | EncryptedData.java | 31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument 32 Preconditions.checkNotNull(encryptedData); in EncryptedData() 34 mEncryptedData = encryptedData; in EncryptedData()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/storage/ |
D | CipherConverter.java | 69 public CipherWrapper<String> decrypt(@NonNull byte[] encryptedData) { in decrypt() argument 70 if (encryptedData.length == 0) { in decrypt() 79 ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(encryptedData); in decrypt() 86 byte[] encryptedPhoneNumber = new byte[encryptedData.length - ivLength - 1]; in decrypt()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeEncryptedPayloadBody.java | 277 byte[] encryptedData, in normalModeDecrypt() argument 282 byte[] paddedPlaintext = decryptCipher.decrypt(encryptedData, decryptionKey, iv); in normalModeDecrypt() 324 byte[] encryptedData, in combinedModeDecrypt() argument 331 ByteBuffer.allocate(encryptedData.length + checksum.length); in combinedModeDecrypt() 332 dataWithChecksumBuffer.put(encryptedData); in combinedModeDecrypt()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/ |
D | XmlUtilTest.java | 126 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption() local 128 .thenReturn(encryptedData); in testPskWifiConfigurationSerializeDeserializeWithEncryption() 129 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption() 427 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() local 429 .thenReturn(encryptedData); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() 430 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/ |
D | IkeNormalModeCipher.java | 127 public byte[] decrypt(byte[] encryptedData, byte[] keyBytes, byte[] ivBytes) in decrypt() argument 129 return doCipherAction(encryptedData, keyBytes, ivBytes, Cipher.DECRYPT_MODE); in decrypt()
|
/packages/apps/Car/libs/encryption-runner/src/android/car/encryptionrunner/ |
D | FakeEncryptionRunner.java | 208 public byte[] decryptData(byte[] encryptedData) { in decryptData() argument 209 return encryptedData; in decryptData()
|
D | Ukey2EncryptionRunner.java | 199 public byte[] decryptData(byte[] encryptedData) throws SignatureException { in decryptData() argument 200 return mConnectionContext.decodeMessageFromPeer(encryptedData); in decryptData()
|
D | Key.java | 51 byte[] decryptData(@NonNull byte[] encryptedData) throws SignatureException; in decryptData() argument
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiConfigStoreTest.java | 872 byte[] encryptedData = new byte[0]; in testReadVersion2StoreFile() 875 random.nextBytes(encryptedData); in testReadVersion2StoreFile() 902 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile() 907 HexEncoding.encodeToString(encryptedData), in testReadVersion2StoreFile()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/bluetoothKeystore/ |
D | BluetoothKeystoreService.java | 553 String encryptedData = mNameEncryptKey.get(prefixString); in compareFileHash() local 554 String decryptedData = tryCompute(encryptedData, false); in compareFileHash()
|