Searched refs:encryptedData (Results 1 – 6 of 6) sorted by relevance
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()
31 public EncryptedData(byte[] encryptedData, byte[] iv) { in EncryptedData() argument32 Preconditions.checkNotNull(encryptedData); in EncryptedData()34 mEncryptedData = encryptedData; in EncryptedData()
392 EncryptedData encryptedData = null; in writePreSharedKeyToXml() local395 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() local724 byte[] preSharedKeyBytes = encryptionUtil.decrypt(encryptedData); in parseFromXml()1100 EncryptedData encryptedData = null; in writePasswordToXml() local1103 encryptedData = encryptionUtil.encrypt(password.getBytes()); in writePasswordToXml()1104 if (encryptedData == null) { in writePasswordToXml()[all …]
121 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testPskWifiConfigurationSerializeDeserializeWithEncryption() local123 .thenReturn(encryptedData); in testPskWifiConfigurationSerializeDeserializeWithEncryption()124 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testPskWifiConfigurationSerializeDeserializeWithEncryption()433 EncryptedData encryptedData = new EncryptedData(new byte[0], new byte[0]); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption() local435 .thenReturn(encryptedData); in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()436 when(mWifiConfigStoreEncryptionUtil.decrypt(encryptedData)) in testWifiEnterpriseConfigSerializeDeserializeWithEncryption()
821 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()
112208 Ljavax/crypto/EncryptedPrivateKeyInfo;->encryptedData:[B