Searched refs:encryptedData (Results 1 – 6 of 6) sorted by relevance
31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument32 Preconditions.checkNotNull(encryptedData); in EncryptedData()34 mEncryptedData = encryptedData; in EncryptedData()
85 EncryptedData encryptedData = null; in encrypt() local91 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() argument120 GCMParameterSpec spec = new GCMParameterSpec(GCM_TAG_LENGTH, encryptedData.getIv()); in decrypt()124 decryptedData = cipher.doFinal(encryptedData.getEncryptedData()); in decrypt()
396 EncryptedData encryptedData = null; in writePreSharedKeyToXml() local399 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() local733 byte[] preSharedKeyBytes = encryptionUtil.decrypt(encryptedData); in parseFromXml()1128 EncryptedData encryptedData = null; in writePasswordToXml() local1131 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml()1132 if (encryptedData == null) { in writePasswordToXml()[all …]
122 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption() local124 .thenReturn(encryptedData); in testPskWifiConfigurationSerializeDeserializeWithEncryption()125 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption()430 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() local432 .thenReturn(encryptedData); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()433 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
814 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()
META-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...