Analysis of a simple substitution-permutation network using linear and differential cryptanalysis