param a param b export function xor ( a , b ) { const result = Buffer . alloc ( Math . min ( a . length , b . length ) ) ; for ( let i = 0 ; i < result . length ; i ++ ) { result [ i ] = a [ i ] ^ b [ i ] ; } return result ; }