code: private static void xor(byte[] result, byte[] other) {
          for (int i = 0; i < result.length; ++i) {
              result[i] = (byte) (result[i] ^ other[i]);
          }
      }
docs: XOR the two arrays and store the result in the first one.
  
  @param result Where to store the result
  @param other  The other array to xor with