Efficient Parallel Implementation of CTR Mode of ARX-Based Block Ciphers on ARMv8 Microcontrollers

被引:2
|
作者
Song, JinGyo [1 ]
Seo, Seog Chung [1 ]
机构
[1] Kookmin Univ, Dept Financial Informat Secur, Seoul 02707, South Korea
来源
APPLIED SCIENCES-BASEL | 2021年 / 11卷 / 06期
基金
新加坡国家研究基金会;
关键词
embedded security; LEA block cipher; HIGHT block cipher; revised CHAM block cipher; counter mode of operation; ARMv8; parallel implementation; internet of things;
D O I
10.3390/app11062548
中图分类号
O6 [化学];
学科分类号
0703 ;
摘要
With the advancement of 5G mobile telecommunication, various IoT (Internet of Things) devices communicate massive amounts of data by being connected to wireless networks. Since this wireless communication is vulnerable to hackers via data leakage during communication, the transmitted data should be encrypted through block ciphers to protect the data during communication. In addition, in order to encrypt the massive amounts of data securely, it is essential to apply one of secure mode of operation. Among them, CTR (CounTeR) mode is the most widely used in industrial applications. However, these IoT devices have limited resources of computing and memory compared to typical computers, so that it is challenging to process cryptographic algorithms that have computation-intensive tasks in IoT devices at high speed. Thus, it is required that cryptographic algorithms are optimized in IoT devices. In other words, optimizing cryptographic operations on these IoT devices is not only basic but also an essential effort in order to build secure IoT-based service systems. For efficient encryption on IoT devices, even though several ARX (Add-Rotate-XOR)-based ciphers have been proposed, it still necessary to improve the performance of encryption for smooth and secure IoT services. In this article, we propose the first parallel implementations of CTR mode of ARX-based ciphers: LEA (Lightweight Encryption Algorithm), HIGHT (high security and light weight), and revised CHAM on the ARMv8 platform, a popular microcontroller in various IoT applications. For the parallel implementation, we propose an efficient data parallelism technique and register scheduling, which maximizes the usage of vector registers. Through proposed techniques, we process the maximum amount of encryption simultaneously by utilizing all vector registers. Namely, in the case of HIGHT and revised CHAM-64/128 (resp. LEA, revised CHAM-128/128, and CHAM-128/256), we can execute 48 (resp. 24) encryptions simultaneously. In addition, we optimize the process of CTR mode by pre-computing and using the intermediate value of some initial rounds by utilizing the property that the nonce part of CTR mode input is fixed during encryptions. Through the pre-computation table, CTR mode is optimized up until round 4 in LEA, round 5 in HIGHT, and round 7 in revised CHAM. With the proposed parallel processing technique, our software provides 3.09%, 5.26%, and 9.52% of improved performance in LEA, HIGHT, and revised CHAM-64/128, respectively, compared to the existing parallel works in ARM-based MCU. Furthermore, with the proposed CTR mode optimization technique, our software provides the most improved performance with 8.76%, 8.62%, and 15.87% in LEA-CTR, HIGHT-CTR, and revised CHAM-CTR, respectively. This work is the fastest implementation of CTR mode on ARMv8 architecture to the best of our knowledge.
引用
收藏
页数:28
相关论文
共 19 条
  • [1] Secure and Fast Implementation of ARX-Based Block Ciphers Using ASIMD Instructions in ARMv8 Platforms
    Song, Jingyo
    Seo, Seog Chung
    [J]. IEEE ACCESS, 2020, 8 : 193138 - 193153
  • [2] Efficient Implementation of ARX-Based Block Ciphers on 8-Bit AVR Microcontrollers
    Kim, YoungBeom
    Kwon, Hyeokdong
    An, SangWoo
    Seo, Hwajeong
    Seo, Seog Chung
    [J]. MATHEMATICS, 2020, 8 (10) : 1 - 22
  • [3] Parallel Implementations of ARX-Based Block Ciphers on Graphic Processing Units
    An, SangWoo
    Kim, YoungBeom
    Kwon, Hyeokdong
    Seo, Hwajeong
    Seo, Seog Chung
    [J]. MATHEMATICS, 2020, 8 (11) : 1 - 25
  • [4] Cryptanalysis of Selected ARX-Based Block Ciphers
    Gundaram, Praveen Kumar
    [J]. VIETNAM JOURNAL OF COMPUTER SCIENCE, 2024,
  • [5] Compact Implementations of ARX-Based Block Ciphers on IoT Processors
    Seo, Hwajeong
    Jeong, Ilwoong
    Lee, Jungkeun
    Kim, Woo-Hwan
    [J]. ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2018, 17 (03)
  • [6] Efficient Implementation of the Classic McEliece on ARMv8 Processors
    Sim, Minjoo
    Kwon, Hyeokdong
    Eum, Siwoo
    Song, Gyeongju
    Lee, Minwoo
    Seo, Hwajeong
    [J]. INFORMATION SECURITY APPLICATIONS, WISA 2023, 2024, 14402 : 324 - 337
  • [7] Efficient Computation of Boomerang Connection Probability for ARX-Based Block Ciphers with Application to SPECK and LEA
    Kim, Dongyeong
    Kwon, Dawoon
    Song, Junghwan
    [J]. IEICE TRANSACTIONS ON FUNDAMENTALS OF ELECTRONICS COMMUNICATIONS AND COMPUTER SCIENCES, 2020, E103A (04) : 677 - 685
  • [8] Real FFT Implementation and Performance Optimization Based on ARMv8 CPUs
    Zhao, Xiang
    Jia, Hai-Peng
    Zhang, Yun-Quan
    Deng, Ming-Sen
    Zhang, Guang-Ting
    Guo, Jin-Xin
    [J]. Jisuanji Xuebao/Chinese Journal of Computers, 2023, 46 (05): : 1003 - 1018
  • [9] Efficient Implementation of eSTREAM Ciphers on 8-bit AVR Microcontrollers
    Meiser, Gordon
    Eisenbarth, Thomas
    Lemke-Rust, Kerstin
    Paar, Christof
    [J]. 2008 INTERNATIONAL SYMPOSIUM ON INDUSTRIAL EMBEDDED SYSTEMS, 2008, : 58 - 66
  • [10] Fast implementations of ARX-based lightweight block ciphers (SPARX, CHAM) on 32-bit processor
    Seok, Byoungjin
    Lee, Changhoon
    [J]. INTERNATIONAL JOURNAL OF DISTRIBUTED SENSOR NETWORKS, 2019, 15 (09)