public static byte Compute(byte[] ary) { return ary.Aggregate<byte, byte>(0, (current, t) => (byte) (current ^ t)); } }