We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481c05b commit 3e4d35aCopy full SHA for 3e4d35a
src/com/iwebpp/crypto/TweetNacl.java
@@ -826,7 +826,7 @@ private static int vn(
826
int n)
827
{
828
int i,d = 0;
829
- for (i = 0; i < n; i ++) d |= x[i+xoff]^y[i+yoff];
+ for (i = 0; i < n; i ++) d |= (x[i+xoff]&0xff) ^ (y[i+yoff]&0xff);
830
return (1 & ((d - 1) >>> 8)) - 1;
831
}
832
src/com/iwebpp/crypto/TweetNaclFast.java
@@ -840,7 +840,7 @@ private static int vn(
840
841
842
843
844
845
846
0 commit comments