Java Utililty Methods xor

List of utility methods to do xor

Description

The list of methods to do xor are organized into topic(s).

Method

byte[]xorMV(byte[] i_Value)
xor MV
return xorMV(i_Value, 0, i_Value.length);
StringxorOperation(String r1, String r2)
Performs a bitwise XOR between passed strings
String result = "";
for (int i = 0; i < 64; i++) {
    if ((r1.charAt(i) == '1') && (r2.charAt(i) == '1'))
        result += '0';
    else if ((r1.charAt(i) == '1') && (r2.charAt(i) == '0'))
        result += '1';
    else if ((r1.charAt(i) == '0') && (r2.charAt(i) == '1'))
        result += '1';
...
voidxorSalsa8(int di, int xi, int[] X)
xor Salsa
int x00 = (X[di + 0] ^= X[xi + 0]);
int x01 = (X[di + 1] ^= X[xi + 1]);
int x02 = (X[di + 2] ^= X[xi + 2]);
int x03 = (X[di + 3] ^= X[xi + 3]);
int x04 = (X[di + 4] ^= X[xi + 4]);
int x05 = (X[di + 5] ^= X[xi + 5]);
int x06 = (X[di + 6] ^= X[xi + 6]);
int x07 = (X[di + 7] ^= X[xi + 7]);
...
intxorShift(int x)
xor Shift
x ^= (x << 6);
x ^= (x >>> 21);
x ^= (x << 7);
return x;