Correcting confusion in encryption