// XORBytes returns the result of XORing together two byte slices, byte by byte.
// It's required that the input slices are the same length.
XORBytes returns the result of XORing together two byte slices, byte by byte.
It's required that the input slices are the same length.
// XORBytes returns the result of XORing together two byte slices byte by byte . // It ' s required that the input slices are the same length .
func XORBytes(a, b []byte) ([]byte, error) {
	if len(a) != len(b) {
		return nil, ErrBuffersNotSameLength
	}
	res := make([]byte, len(a))
	for i := 0; i < len(a); i++ {
		res[i] = a[i] ^ b[i]
	}
	return res, nil
}
func XORBytes ( a , b [ ] byte ) ( [ ] byte , error ) { if len ( a ) != len ( b ) { return nil , ErrBuffersNotSameLength } res := make ( [ ] byte , len ( a ) ) for i := 0 ; i < len ( a ) ; i ++ { res [ i ] = a [ i ] ^ b [ i ] } return res , nil }
XORBytes returns the result of XORing together two byte slices, byte by byte.
XORBytes returns the result of XORing together two byte slices byte by byte .