Skip to content

Commit

Permalink
bugfix, if the parameter inOff is not zero, it can not be decrypted s…
Browse files Browse the repository at this point in the history
…uccessully
  • Loading branch information
ZZMarquis committed Mar 23, 2018
1 parent 6b2d398 commit 7fe52a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private byte[] decrypt(byte[] in, int inOff, int inLen)
int check = 0;
for (int i = 0; i != c3.length; i++)
{
check |= c3[i] ^ in[c1.length + c2.length + i];
check |= c3[i] ^ in[inOff + c1.length + c2.length + i];
}

Arrays.fill(c1, (byte)0);
Expand Down

0 comments on commit 7fe52a1

Please sign in to comment.