Differential and linear cryptanalysis for 2-round SPNs