From 76d9f24210be02e4f1312a157e9a30ad40f0b065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 25 Jun 2023 19:45:12 +0200 Subject: [PATCH] Remove dead code of Harman Decryptor --- .../src/com/jpexs/decompiler/flash/HarmanDecryption.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/HarmanDecryption.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/HarmanDecryption.java index dcd92497b..925774328 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/HarmanDecryption.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/HarmanDecryption.java @@ -105,9 +105,7 @@ public class HarmanDecryption { // aes key // this one is stored at the end of the file - byte aesKey[] = new byte[32]; - //int aesKeyIdx = 8 + 4 + paddedLength; //skip header, size, data - + byte aesKey[] = new byte[32]; byte data[] = new byte[paddedLength]; dais.readFully(data); @@ -132,10 +130,6 @@ public class HarmanDecryption { cipher.init(Cipher.DECRYPT_MODE, secretKeySpec, new IvParameterSpec(aesIV)); byte decryptedData[] = cipher.doFinal(data); - - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - baos.write(decryptedData); - return new ByteArrayInputStream(Arrays.copyOfRange(decryptedData, 0, decryptedLength)); } }