Skip to content

Commit

Permalink
Update UnApkm.java
Browse files Browse the repository at this point in the history
  • Loading branch information
souramoo authored Mar 28, 2020
1 parent 34888e6 commit 0e2ee37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/souramoo/unapkm/UnApkm.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ static class Header {
}
}

public static Header processHeader(InputStream i, LazySodiumJava lazySodium) throws IOException {
return processHeader(i, lazySodium, true);
}

public static Header processHeader(InputStream i, LazySodiumJava lazySodium, boolean expensiveOps) throws IOException {
return processHeader(i, lazySodium, expensiveOps, MEM_LIMIT);
}
Expand Down Expand Up @@ -96,7 +100,7 @@ public static Header processHeader(InputStream i, LazySodiumJava lazySodium, boo

public static InputStream decryptStream(InputStream i) throws IOException {
LazySodiumJava lazySodium = new LazySodiumJava(new SodiumJava());
Header h = processHeader(i, lazySodium, true);
Header h = processHeader(i, lazySodium);
return decryptStream(i, h, lazySodium);
}

Expand Down

0 comments on commit 0e2ee37

Please sign in to comment.