Algorithm 5: Simon [15,16] |
Proceed with the following steps.
Make repetitions of Subroutine 6 (also shown in Figure 37). This will with high probability yield linearly independent bit-vectors orthogonal to s.
Solve the resulting linear system of equations to obtain the candidate solution
Query the function for and , for some x.
If the two queries give the same value, then the function is two-to-one and invariant under the XOR-mask , and otherwise not. |