ANF to CNF conversion
Algebraic Normal Form, or simply ANF, is the form used to describe cryptographic functions. It looks like this: a∗b⊕b∗c⊕b⊕d=0b∗c⊕c⊕a=0… a*b \oplus b*c \oplus b \oplus d = 0\\ b*c \oplus c \oplus a = 0\\ \ldots a∗b⊕b∗c⊕b⊕d=0b∗c⊕c⊕a=0… Where a,…da,\ldots da,…d are binary variables, the ⊕\oplus⊕ sign is binary XOR, and the ∗*∗ sign is binary AND. Every item that is connected with the XOR-s is called a monomial, and its degree is the number of independent variables inside it. So, a∗ba*ba∗b is a 2-degree monomial in the first equation, and ccc is a 1-degree monomial in the second equation. ...