Grover on SM3

Grover search algorithm accelerates the key search on the symmetric key cipher and the pre-image attack on the hash function. In order to perform Grover search algorithm, the target algorithm should be implemented in a quantum circuit. For this reason, we propose an optimal SM3 hash function (Chinese standard) in a quantum circuit. We focused on minimizing the use of qubits together with reducing the use of quantum gates. To do this, the on-the-fly approach is utilized for message expansion and compression functions. In particular, the previous value is restored and used without allocating new qubits in the permutation operation. Finally, we estimate quantum resources required for the quantum pre-image attack based on the proposed SM3 hash function implementation in the quantum circuit.

[1]  Michele Mosca,et al.  Estimating the Cost of Generic Quantum Pre-image Attacks on SHA-2 and SHA-3 , 2016, SAC.

[2]  Martin Roetteler,et al.  Implementing Grover Oracles for Quantum Key Search on AES and LowMC , 2019, IACR Cryptol. ePrint Arch..

[3]  Grover on Caesar and Vigenère Ciphers , 2021, IACR Cryptol. ePrint Arch..

[4]  Seung Joo Choi,et al.  Grover on SPECK: Quantum Resource Estimates , 2020, IACR Cryptol. ePrint Arch..

[5]  Hwajeong Seo,et al.  Grover on GIFT , 2020, IACR Cryptol. ePrint Arch..

[6]  Peter W. Shor,et al.  Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer , 1995, SIAM Rev..

[7]  Hwajeong Seo,et al.  Grover on PIPO , 2021 .

[8]  Michele Mosca,et al.  Benchmarking the quantum cryptanalysis of symmetric, public-key and hash-based cryptographic schemes , 2019, 1902.02332.

[9]  Hyeokdong Kwon,et al.  Grover on Korean Block Ciphers , 2020, Applied Sciences.

[10]  Martin Rötteler,et al.  Post-Quantum Cryptography , 2015, Lecture Notes in Computer Science.

[11]  Matthias Troyer,et al.  ProjectQ: An Open Source Software Framework for Quantum Computing , 2016, ArXiv.

[12]  Lov K. Grover A fast quantum mechanical algorithm for database search , 1996, STOC '96.

[13]  Rainer Steinwandt,et al.  Reducing the Cost of Implementing AES as a Quantum Circuit , 2020, IEEE Transactions on Quantum Engineering.

[14]  Hwajeong Seo,et al.  Efficient Implementation of PRESENT and GIFT on Quantum Computers , 2021, Applied Sciences.