The Kullback test as a cryptanalysis tool