Home
last modified time | relevance | path

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

/packages/modules/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()
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()
DXmlUtil.java413 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 …]
DEncryptedData.java31 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/
DCipherConverter.java69 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/
DIkeEncryptedPayloadBody.java277 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/
DXmlUtilTest.java126 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/
DIkeNormalModeCipher.java127 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/
DFakeEncryptionRunner.java208 public byte[] decryptData(byte[] encryptedData) { in decryptData() argument
209 return encryptedData; in decryptData()
DUkey2EncryptionRunner.java199 public byte[] decryptData(byte[] encryptedData) throws SignatureException { in decryptData() argument
200 return mConnectionContext.decodeMessageFromPeer(encryptedData); in decryptData()
DKey.java51 byte[] decryptData(@NonNull byte[] encryptedData) throws SignatureException; in decryptData() argument
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigStoreTest.java872 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/
DBluetoothKeystoreService.java553 String encryptedData = mNameEncryptKey.get(prefixString); in compareFileHash() local
554 String decryptedData = tryCompute(encryptedData, false); in compareFileHash()