Use of XOR accumulator
I draw another schematics, the main part is like following.
Instead of a shift register and a set of xor gates, it only uses an accumulator and a single xor gate.
The shift register was used because I had an idea of changing the shift register …