Skip to main content

An Efficient Implementation of AES on 8-Bit AVR-Based Sensor Nodes

  • Conference paper
  • First Online:
Information Security Applications (WISA 2020)

Part of the book series: Lecture Notes in Computer Science ((LNSC,volume 12583))

Included in the following conference series:

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).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. NIST.: Announcing the ADVANCED ENCRYPTION STANDARD(AES). https://www.nist.gov/publications/advanced-encryption-standard-aes

  2. Otte, D., et al.: AVR-crypto-lib (2009). http://www.das-labor.org/wiki/AVRCry-pto-Lib/en

  3. 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)

    Google Scholar 

  4. 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

    Chapter  Google Scholar 

  5. 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)

    Google Scholar 

  6. Atmel.: AVR Instruction Set Manual. http://ww1.microchip.com/downloads/en/-devicedoc/atmel-0856-avr-instruction-set-manual.pdf

  7. 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)

    Article  Google Scholar 

  8. 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)

    Google Scholar 

  9. 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)

    Google Scholar 

  10. 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

    Chapter  Google Scholar 

  11. Kim, K.H.: FACE-LIGHT (2019). https://github.com/solowal/DEVELOP/tree/master/Source%20Code

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Seog Chung Seo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics