TY - GEN
T1 - Efficient Implementation of Kyber on Mobile Devices
AU - Zhao, Lirui
AU - Zhang, Jipeng
AU - Huang, Junhao
AU - Liu, Zhe
AU - Hancke, Gerhard
PY - 2021/12
Y1 - 2021/12
N2 - Kyber, an IND-CCA-secure key encapsulation mechanism (KEM) based on the MLWE problem, has been shortlisted for the third round evaluation of the NIST Post-Quantum Cryptography Standardization. In this paper, we explored the optimizations of Kyber in high-performance processors from the ARM Cortex-A series, which are widely used in mainstream mobile phones. To improve the performance of Kyber, we utilized the powerful SIMD instruction set NEON in an ARMv8-A to parallelize the core modules of Kyber, i.e., modular reduction and NTT. Specifically, we specially designed the optimized implementation based on the characteristic of the NEON instruction set for the Barrett and Montgomery reduction algorithms. To make full use of the computing power of NEON instructions, we proposed a novel strategy for computing the 16-bit Barrett reduction without handling the 32-bit intermediate result. Our Barrett and Montgomery reduction showed 8.52 and 8.89 times faster than the reference implementation. As for NTT/INTT, we adopted the 2+5 layer merging strategy on an ARMv8-A to implement NTT/INTT after carefully analyzing the register occupancy of various layer merging techniques. Thanks to the selected layer merging strategy, our NTT and INTT achieved 11.89 and 13.45 times speedups compared with the reference implementation. Our optimized software achieved 1.77×, 1.85×, and 2.16× speedups for key generation, encapsulation, and decapsulation compared with Kyber's reference implementation.
AB - Kyber, an IND-CCA-secure key encapsulation mechanism (KEM) based on the MLWE problem, has been shortlisted for the third round evaluation of the NIST Post-Quantum Cryptography Standardization. In this paper, we explored the optimizations of Kyber in high-performance processors from the ARM Cortex-A series, which are widely used in mainstream mobile phones. To improve the performance of Kyber, we utilized the powerful SIMD instruction set NEON in an ARMv8-A to parallelize the core modules of Kyber, i.e., modular reduction and NTT. Specifically, we specially designed the optimized implementation based on the characteristic of the NEON instruction set for the Barrett and Montgomery reduction algorithms. To make full use of the computing power of NEON instructions, we proposed a novel strategy for computing the 16-bit Barrett reduction without handling the 32-bit intermediate result. Our Barrett and Montgomery reduction showed 8.52 and 8.89 times faster than the reference implementation. As for NTT/INTT, we adopted the 2+5 layer merging strategy on an ARMv8-A to implement NTT/INTT after carefully analyzing the register occupancy of various layer merging techniques. Thanks to the selected layer merging strategy, our NTT and INTT achieved 11.89 and 13.45 times speedups compared with the reference implementation. Our optimized software achieved 1.77×, 1.85×, and 2.16× speedups for key generation, encapsulation, and decapsulation compared with Kyber's reference implementation.
KW - Kyber
KW - Lattice-based Cryptography
KW - Modular Reduction
KW - Module-LWE
KW - NTT
UR - https://www.scopus.com/pages/publications/85129818781
UR - https://www.scopus.com/pages/publications/85129818781#tab=impact
U2 - 10.1109/ICPADS53394.2021.00069
DO - 10.1109/ICPADS53394.2021.00069
M3 - RGC 32 - Refereed conference paper (with host publication)
SN - 978-1-6654-0879-0
T3 - Proceedings of the International Conference on Parallel and Distributed Systems - ICPADS
SP - 506
EP - 513
BT - Proceedings - 2021 IEEE 27th International Conference on Parallel and Distributed Systems
PB - IEEE
T2 - 27th IEEE International Conference on Parallel and Distributed Systems (ICPADS 2021)
Y2 - 14 December 2021 through 16 December 2021
ER -