Source: https://www.math.u-bordeaux.fr/~cbachocb/Enseignements/Cryptanalyse/crypto.pdf