I know that balanced boolean functions are required for creating S-boxes. I want to create four balanced Boolean functions for 4X4 Sbox and as far as I’ve understood, the maximum order of the balanced Boolean function should be <= (number of var)/2.
But… how many terms should there be in my boolean functions?