Abstract
Recently, FACE-LIGHT was proposed on 8-bit AVR MCUs for fast AES encryption. FACE-LIGHT is an extended version of Fast AES-CTR mode Encryption (FACE) method which was firstly proposed for high-end processors and it is tailored for performance on 8-bit AVR MCUs. Even though it has achieved high performance, it has to suffer from the overhead caused by table generation. Thus, when the number of blocks is less than a certain number, the table generation overhead is greater than the gains from using the generated table in the process of encryption. In other words, FACE-LIGHT needs to generate new tables whenever the Initial Vector (IV) is changed. Thus, frequent table regeneration results in a significant performance degradation. In this paper, we present an efficient implementation of AES block cipher on 8-bit AVR Microcontrollers (MCUs). Our method combines ShiftRows, SubBytes, and MixColumns operations into one with column-wise fashion and makes full use of registers of AVR MCUs for high performance. With handcrafted assembly codes, our implementation has achieved 2,251, 2,706, and 3,160 clock cycles for 128-bit, 192-bit, and 256-bit security, respectively. Our implementation outperforms FACE-LIGHT with respect to overall performance including table generation and block encryptions until around 1,850 blocks (resp. 15,000 blocks) for 128-bit (resp. 192-bit) security. With respect to 256-bit security, our implementation always outperforms FACE-LIGHT without considering the table generation time. Our implementation operates in constant time and can be used for not only CTR mode, but also CBC mode differently from FACE-LIGHT.
This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (No. 2019R1F1A1058494).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
References
NIST.: Announcing the ADVANCED ENCRYPTION STANDARD(AES). https://www.nist.gov/publications/advanced-encryption-standard-aes
Otte, D., et al.: AVR-crypto-lib (2009). http://www.das-labor.org/wiki/AVRCry-pto-Lib/en
Park, J.H., Lee, D.H.: FACE: Fast AES CTR mode encryption techniques based on the reuse of repetitive data. In: IACR Transactions on Cryptographic Hard-ware and Embedded Systems, pp. 469–499 (2018)
Kim, K., Choi, S., Kwon, H., Liu, Z., Seo, H.: FACE–LIGHT: fast AES–CTR mode encryption for Low-End microcontrollers. In: Seo, J.H. (ed.) ICISC 2019. LNCS, vol. 11975, pp. 102–114. Springer, Cham (2020). https://doi.org/10.1007/978-3-030-40921-0_6
Z., Liu, H., J., Seo, J., Großschädl, H., W., Kim.: Efficient implementation of NIST-compliant elliptic curve cryptography for 8-bit AVR-based sensor nodes. In: IEEE Transactions Information Forensics and Security, pp. 1385–1397 (2016)
Atmel.: AVR Instruction Set Manual. http://ww1.microchip.com/downloads/en/-devicedoc/atmel-0856-avr-instruction-set-manual.pdf
Seo, S.C., Seo, H.: Highly efficient implementation of NIST-compliant koblitz curve for 8-bit AVR-based sensor nodes. IEEE Access 6, 67637–67652 (2018)
Tawalbeh, H., Hashish, S., Tawalbeh, L., Aldairi, A.: Security in wireless sensor networks using lightweight cryptography. In: ISSN Information Assurance and Security, pp. 118–123 (2017)
Dinu, D., Biryukov, A., Großschädl, J., Khovratovich, D., Le Corre, Y., Perrin, L.: FELICS-fair evaluation of lightweight cryptographic systems. In: NIST Workshop on Lightweight Cryptography, vol. 128 (2015)
Boneh, D., Gentry, C., Waters, B.: Collusion resistant broadcast encryption with short ciphertexts and private keys. In: Shoup, V. (ed.) CRYPTO 2005. LNCS, vol. 3621, pp. 258–275. Springer, Heidelberg (2005). https://doi.org/10.1007/11535218_16
Kim, K.H.: FACE-LIGHT (2019). https://github.com/solowal/DEVELOP/tree/master/Source%20Code
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2020 Springer Nature Switzerland AG
About this paper
Cite this paper
Kim, Y., Seo, S.C. (2020). An Efficient Implementation of AES on 8-Bit AVR-Based Sensor Nodes. In: You, I. (eds) Information Security Applications. WISA 2020. Lecture Notes in Computer Science(), vol 12583. Springer, Cham. https://doi.org/10.1007/978-3-030-65299-9_21
Download citation
DOI: https://doi.org/10.1007/978-3-030-65299-9_21
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-65298-2
Online ISBN: 978-3-030-65299-9
eBook Packages: Computer ScienceComputer Science (R0)