Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers

In this paper, we propose the first ARIA block cipher on both MSP430 and Advanced RISC Machines (ARM) microcontrollers. To achieve the optimized ARIA implementation on target embedded processors, core operations of ARIA, such as substitute and diffusion layers, are carefully re-designed for both MSP...

Full description

Bibliographic Details
Main Authors: Hwajeong Seo, Hyunjun Kim, Kyoungbae Jang, Hyeokdong Kwon, Minjoo Sim, Gyeongju Song, Siwoo Uhm
Format: Article
Language:English
Published: MDPI AG 2021-04-01
Series:Electronics
Subjects:
Online Access:https://www.mdpi.com/2079-9292/10/8/908
id doaj-8d8858c917844599bc407e27c6fb5e5c
record_format Article
spelling doaj-8d8858c917844599bc407e27c6fb5e5c2021-04-11T23:00:49ZengMDPI AGElectronics2079-92922021-04-011090890810.3390/electronics10080908Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 MicrocontrollersHwajeong Seo0Hyunjun Kim1Kyoungbae Jang2Hyeokdong Kwon3Minjoo Sim4Gyeongju Song5Siwoo Uhm6Division of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaDivision of IT Convergence Engineering, Hansung University, Seoul 02876, KoreaIn this paper, we propose the first ARIA block cipher on both MSP430 and Advanced RISC Machines (ARM) microcontrollers. To achieve the optimized ARIA implementation on target embedded processors, core operations of ARIA, such as substitute and diffusion layers, are carefully re-designed for both MSP430 (Texas Instruments, Dallas, TX, USA) and ARM Cortex-M3 microcontrollers (STMicroelectronics, Geneva, Switzerland). In particular, two bytes of input data in ARIA block cipher are concatenated to re-construct the 16-bit wise word. The 16-bit word-wise operation is executed at once with the 16-bit instruction to improve the performance for the 16-bit MSP430 microcontroller. This approach also optimizes the number of required registers, memory accesses, and operations to half numbers rather than 8-bit word wise implementations. For the ARM Cortex-M3 microcontroller, the <inline-formula><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><semantics><mrow><mn>8</mn><mo>×</mo><mn>32</mn></mrow></semantics></math></inline-formula> look-up table based ARIA block cipher implementation is further optimized with the novel memory access. The memory access is finely scheduled to fully utilize the 3-stage pipeline architecture of ARM Cortex-M3 microcontrollers. Furthermore, the counter (CTR) mode of operation is more optimized through pre-computation techniques than the electronic code book (ECB) mode of operation. Finally, proposed ARIA implementations on both low-end target microcontrollers (MSP430 and ARM Cortex-M3) achieved (209 and 96 for 128-bit security level, respectively), (241 and 111 for 192-bit security level, respectively), and (274 and 126 for 256-bit security level, respectively). Compared with previous works, the running timing on low-end target microcontrollers (MSP430 and ARM Cortex-M3) is improved by (92.20% and 10.09% for 128-bit security level, respectively), (92.26% and 10.87% for 192-bit security level, respectively), and (92.28% and 10.62% for 256-bit security level, respectively). The proposed ARIA–CTR implementation improved the performance by 6.6% and 4.0% compared to the proposed ARIA–ECB implementations for MSP430 and ARM Cortex-M3 microcontrollers, respectively.https://www.mdpi.com/2079-9292/10/8/908ARIAblock ciphersoftware implementationcounter mode of operationmicrocontroller
collection DOAJ
language English
format Article
sources DOAJ
author Hwajeong Seo
Hyunjun Kim
Kyoungbae Jang
Hyeokdong Kwon
Minjoo Sim
Gyeongju Song
Siwoo Uhm
spellingShingle Hwajeong Seo
Hyunjun Kim
Kyoungbae Jang
Hyeokdong Kwon
Minjoo Sim
Gyeongju Song
Siwoo Uhm
Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
Electronics
ARIA
block cipher
software implementation
counter mode of operation
microcontroller
author_facet Hwajeong Seo
Hyunjun Kim
Kyoungbae Jang
Hyeokdong Kwon
Minjoo Sim
Gyeongju Song
Siwoo Uhm
author_sort Hwajeong Seo
title Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
title_short Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
title_full Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
title_fullStr Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
title_full_unstemmed Compact Implementation of ARIA on 16-Bit MSP430 and 32-Bit ARM Cortex-M3 Microcontrollers
title_sort compact implementation of aria on 16-bit msp430 and 32-bit arm cortex-m3 microcontrollers
publisher MDPI AG
series Electronics
issn 2079-9292
publishDate 2021-04-01
description In this paper, we propose the first ARIA block cipher on both MSP430 and Advanced RISC Machines (ARM) microcontrollers. To achieve the optimized ARIA implementation on target embedded processors, core operations of ARIA, such as substitute and diffusion layers, are carefully re-designed for both MSP430 (Texas Instruments, Dallas, TX, USA) and ARM Cortex-M3 microcontrollers (STMicroelectronics, Geneva, Switzerland). In particular, two bytes of input data in ARIA block cipher are concatenated to re-construct the 16-bit wise word. The 16-bit word-wise operation is executed at once with the 16-bit instruction to improve the performance for the 16-bit MSP430 microcontroller. This approach also optimizes the number of required registers, memory accesses, and operations to half numbers rather than 8-bit word wise implementations. For the ARM Cortex-M3 microcontroller, the <inline-formula><math xmlns="http://www.w3.org/1998/Math/MathML" display="inline"><semantics><mrow><mn>8</mn><mo>×</mo><mn>32</mn></mrow></semantics></math></inline-formula> look-up table based ARIA block cipher implementation is further optimized with the novel memory access. The memory access is finely scheduled to fully utilize the 3-stage pipeline architecture of ARM Cortex-M3 microcontrollers. Furthermore, the counter (CTR) mode of operation is more optimized through pre-computation techniques than the electronic code book (ECB) mode of operation. Finally, proposed ARIA implementations on both low-end target microcontrollers (MSP430 and ARM Cortex-M3) achieved (209 and 96 for 128-bit security level, respectively), (241 and 111 for 192-bit security level, respectively), and (274 and 126 for 256-bit security level, respectively). Compared with previous works, the running timing on low-end target microcontrollers (MSP430 and ARM Cortex-M3) is improved by (92.20% and 10.09% for 128-bit security level, respectively), (92.26% and 10.87% for 192-bit security level, respectively), and (92.28% and 10.62% for 256-bit security level, respectively). The proposed ARIA–CTR implementation improved the performance by 6.6% and 4.0% compared to the proposed ARIA–ECB implementations for MSP430 and ARM Cortex-M3 microcontrollers, respectively.
topic ARIA
block cipher
software implementation
counter mode of operation
microcontroller
url https://www.mdpi.com/2079-9292/10/8/908
work_keys_str_mv AT hwajeongseo compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT hyunjunkim compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT kyoungbaejang compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT hyeokdongkwon compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT minjoosim compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT gyeongjusong compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
AT siwoouhm compactimplementationofariaon16bitmsp430and32bitarmcortexm3microcontrollers
_version_ 1721530489787908096