Aiming at the security analysis problem of KATAN48 algorithm, a conditional differential cryptanalysis method of KATAN48 algorithm based on neural distinguishers was proposed. First, the basic principle of multiple output differences neural distinguishers was studied and applied to KATAN48 algorithm. According to the data format of KATAN48 algorithm, the input format and hyperparameters of the deep residual neural network were adjusted. Then, the Mixed-Integer Linear Programming (MILP) model of KATAN48 algorithm was established to search the prepended differential paths and the corresponding constraint conditions. At last, using the multiple output differences neural distinguishers, at most 80-round of the practical key recovery attack results of KATAN48 algorithm were given. Experimental results show that in the single key setting, the number of practical attack rounds of KATAN48 algorithm is increased by 10 rounds, the number of recoverable key bits of KATAN48 algorithm is increased by 22 bit and the data complexity and time complexity of KATAN48 algorithm are reduced from 234 and 234 to 216.39 and 219.68 respectively. Compared to the previous practical attack at the single-key setting, the proposed method can effectively increase the number of attack rounds and recoverable key bits, and reduces the computational complexity of attack.
To measure the pitch of twisted-pair wires, a kind of image detection framework was put forward. With image segmentation, image restoration, image thinning, curve fitting and scale setting, the pitch of twisted-pair wires was calculated in real time. In combination with this framework, to deal with the problem that the traditional two-dimensional maximum between-cluster variance algorithm (Otsu) runs too slow, a new fast algorithm based on regional diagonal points was proposed. With redefining two-dimensional histogram area, using the quick lookup table and recursion method, it reduced running time drastically. To solve the problem of image missing, an edge detection algorithm was adopted. After repairing, the image thinning operation was acted on the image. The least square method was used to fit the single pixel point of thinning image, then fitting curve was acquired. It could acquire the pitch of twisted-pair wires in the image by calculating the distance between the fitting curve intersections. Finally the distance in image was converted to an observed value by the scale. The experimental results show that the segmentation time of fast algorithm is about 0.22% of traditional algorithm. And two segmentation results of algorithms are identical. With the pitch from the image detection method comparing with its real value, results show that the absolute errors between both of them are 0.48%. Through the image detection method, the pitch is measured accurately and the efficiency of twisted-pair pitch measurement is improved.