A Frequency-first Heuristic for Shortest Linear Programs

The shortest linear program has been proved to be a NP-hard problem. In order to obtain the better approximate solution, a frequency-first heuristic method is proposed, which can optimize the number of XOR gates required by linear components while ensuring the stability of the algorithm. Firstly, we combine the pre-emptive gate strategy with frequency-first (FQCY) in the selection stage to reduce the increase of time complexity caused by exhaustive search, so that the high-density matrix can obtain the optimal result within a reasonable time. Secondly, minimization of vector and appropriate randomization are added to deal with the tie, so as to give full play to the advantages of cancellation-allowed circuit and increase the possibility of obtaining the optimal solution. Finally, compared with Paar, BP, RNBP, RSDF algorithms on random matrices of various sizes and densities, it is proved that the probability of obtaining the optimal solution of the proposed algorithm in circuit depth is more than 30% higher than RNBP and RSDF. In terms of the number of XOR gates, especially for larger matrix, the probability of obtaining the optimal solution increases by more than 10%. The stability of the optimal circuit generated by this algorithm is about 90%.

[1]  Takanori Isobe,et al.  More Results on Shortest Linear Programs , 2019, IWSEC.

[2]  Thomas Peyrin,et al.  FOAM: Searching for Hardware-Optimal SPN Structures and Components with a Fair Comparison , 2014, CHES.

[3]  Joan Boyar,et al.  Logic Minimization Techniques with Applications to Cryptology , 2013, Journal of Cryptology.

[4]  Ko Stoffelen,et al.  Shorter Linear Straight-Line Programs for MDS Matrices , 2017, IACR Cryptol. ePrint Arch..

[5]  Da Lin,et al.  Optimizing Implementations of Linear Layers , 2020 .

[6]  Christof Paar,et al.  Optimized arithmetic for Reed-Solomon encoders , 1997, Proceedings of IEEE International Symposium on Information Theory.

[7]  Arash Reyhani-Masoleh,et al.  Smashing the Implementation Records of AES S-box , 2018, IACR Trans. Cryptogr. Hardw. Embed. Syst..

[8]  Joan Boyar,et al.  On the Shortest Linear Straight-Line Program for Computing Linear Forms , 2008, MFCS.

[9]  Joan Boyar,et al.  Cancellation-free circuits in unbounded and bounded depth , 2013, Theor. Comput. Sci..

[10]  Thomas Peyrin,et al.  Optimizing Implementations of Lightweight Building Blocks , 2017, IACR Trans. Symmetric Cryptol..

[11]  Ko Stoffelen,et al.  Optimizing S-Box Implementations for Several Criteria Using SAT Solvers , 2016, FSE.

[12]  Joan Boyar,et al.  A New Combinational Logic Minimization Technique with Applications to Cryptology , 2010, SEA.

[13]  Andrea Visconti,et al.  Improved upper bounds for the expected circuit complexity of dense systems of linear equations over GF(2) , 2017, IACR Cryptol. ePrint Arch..

[14]  Alexander Maximov AES MixColumn with 92 XOR gates , 2019, IACR Cryptol. ePrint Arch..

[15]  Mahdi Sajadieh,et al.  A New Approach for the Implementation of Binary Matrices Using SLP Applications , 2020, IACR Cryptol. ePrint Arch..