I found this while working on #36 and this does not go away even after #133. We should consider a solution without using MUX circuits. Otherwise, shifts while the shift amount is ciphertext will be limited to value and shift amount are both 1 byte only. To get a sense of it, shifting 16 bit value takes 30 seconds and rotation takes 4 minutes on my macbook, while shifting 32 bit value does not finish in 7 hours and I have to kill it.
I found this while working on #36 and this does not go away even after #133. We should consider a solution without using MUX circuits. Otherwise, shifts while the shift amount is ciphertext will be limited to value and shift amount are both 1 byte only. To get a sense of it, shifting 16 bit value takes 30 seconds and rotation takes 4 minutes on my macbook, while shifting 32 bit value does not finish in 7 hours and I have to kill it.