Skip to content

Commit

Permalink
Merge branch 'master' of github.com:souramoo/unapkm
Browse files Browse the repository at this point in the history
  • Loading branch information
souramoo committed May 7, 2020
2 parents 191c446 + 0e2ee37 commit c0438cb
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 c0438cb

Please sign in to comment.