private static void xor ( byte [ ] result , byte [ ] other ) { for ( int i = 0 ; i < result . length ; ++ i ) { result [ i ] = ( byte ) ( result [ i ] ^ other [ i ] ) ; } }
XOR the two arrays and store the result in the first one .