journal article·2020-04-19Open access

Highly Efficient SCA-Resistant Binary Field Multiplication on 8-Bit AVR Microcontrollers

Seog Chung Seo, Donggeun Kwon

Applied Sciences· Volume 10· Issue 8

Abstract

Binary field ( B F ) multiplication is a basic and important operation for widely used crypto algorithms such as the GHASH function of GCM (Galois/Counter Mode) mode and NIST-compliant binary Elliptic Curve Cryptosystems (ECCs). Recently, Seo et al. proposed a novel SCA-resistant binary field multiplication method in the context of GHASH optimization in AES GCM mode on 8-bit AVR microcontrollers (MCUs). They proposed a concept of Dummy XOR operation with a kind of garbage registers and a concept of instruction level atomicity ( I L A ) for resistance against Timing Analysis (TA) and Simple Power Analysis (SPA) and used a Karatsuba Block-Comb multiplication approach for efficiency. Even though their method achieved a large performance improvement compared with previous works, it still has room for improvement on the 8-bit AVR platform. In this paper, we propose a more improved binary field multiplication method on 8-bit AVR MCUs. Our method basically adopts a Dummy XOR technique using a set of garbage registers for TA and SPA security; however, we save the number of used garbage registers from eight to one by using the fact that the number of used garbage registers does not affect TA and SPA security. In addition, we apply a multiplier encoding approach so as to decrease the number of required registers when accessing the multiplier, which enables the use of extended block size in the Karatsuba Block-Comb multiplication technique. Actually, the proposed technique extends the block size from four to eight and the proposed binary field multiplication method can compute a 128-bit B F multiplication with only 3816 clock cycles ( c c ) (resp. 3490 c c ) with (resp. without) the multiplier encoding process, which is almost a 32.8% (resp. 38.5%) improvement compared with 5675 c c of the best previous work. We apply the proposed technique to the GHASH function of the GCM mode with several additional optimization techniques. The proposed GHASH implementation provides improved performance by over 42% compared with the previous best result. The concept of the proposed B F method can be extended to other MCUs, including 16-bit MSP430 MCUs and 32-bit ARM MCUs.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Cryptography and Residue Arithmetic · Coding theory and cryptography · Cryptography and Data Security

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Department of Information Security, Cryptology, and Mathematics, Kookmin University, Seoul 02707, Korea

Graduate School of Information Security and Institute of Cyber Security & Privacy (ICSP), Korea University, Seoul 02841, Korea

Funding

National Research Foundation of Korea

References (20)

Show source-provided references
1. NIST (2020, April 18). Cryptographic Algorithm Validation Program, Available online: https://csrc.nist.gov/projects/cryptographic-algorithm-validation-program.
2. López, J., and Dahab, R. (2000, January 10–13). High-Speed Software Multiplication in F2m. Proceedings of the International Conference on Cryptology in India, Calcutta, India.10.1007/3-540-44495-5_18 ↗
3. TinyECCK: Efficient elliptic curve cryptography implementation over GF(2m) on 8-bit Micaz mote10.1093/ietisy/e91-d.5.1338 ↗
4. Efficient implementation of elliptic curve cryptography in wireless sensors10.3934/amc.2010.4.169 ↗
5. TinyPBC: Pairings for authenticated identity-based non-interactive key distribution in sensor networks10.1016/j.comcom.2010.05.013 ↗
6. Efficient implementation of pairing-based cryptography on a sensor node10.1587/transinf.E92.D.909 ↗
7. Binary and prime field multiplication for public key cryptography on embedded microprocessors10.1002/sec.779 ↗
8. Karatsuba–Block-Comb technique for elliptic curve cryptography over binary fields10.1002/sec.1237 ↗
9. Highly Efficient Implementation of NIST-Compliant Koblitz Curve for 8-bit AVR-Based Sensor Nodes10.1109/ACCESS.2018.2878777 ↗
10. SCA-Resistant GCM Implementation on 8-Bit AVR Microcontrollers10.1109/ACCESS.2019.2930986 ↗
11. Secure GCM implementation on AVR10.1016/j.dam.2016.10.015 ↗
12. Clavier, C., Feix, B., Gagnerot, G., Roussellet, M., and Verneuil, V. (2010, January 15–17). Horizontal Correlation Analysis on Exponentiation. Proceedings of the Information and Communications Security—12th International Conference (ICICS 2010), Barcelona, Spain.10.1007/978-3-642-17650-0_5 ↗
13. Atme (2020, April 18). AVR Instruction Set Manual. Available online: http://ww1.microchip.com/downloads/en/devicedoc/atmel-0856-avr-instruction-set-manual.pdf.
14. Hankerson, D., Menezes, A.J., and Vanstone, S. (2004). Guide to Elliptic Curve Cryptography, Springer Science.
15. Seo, H., Chen, C., Liu, Z., Nogami, Y., Park, T., Choi, J., and Kim, H. (2015, January 20–22). Secure Binary Field Multiplication. Proceedings of the Information Security Applications—16th International Workshop, (WISA 2015), Jeju Island, Korea.
16. McGrew, D., and Viega, J. (2020, April 18). The Galois/Counter Mode of Operation. GCM. Available online: http://luca-giuzzi.unibs.it/corsi/Support/papers-cryptography/gcm-spec.pdf.
17. McGrew, D.A., and Viega, J. (2004, January 20–22). The Security and Performance of the Galois/Counter Mode (GCM) of Operation. Proceedings of the Progress in Cryptology—INDOCRYPT 2004, 5th International Conference on Cryptology in India, Chennai, India.10.1007/978-3-540-30556-9_27 ↗
18. Gouvêa, C.P.L., and López, J. (2012, January 7–10). High Speed Implementation of Authenticated Encryption for the MSP430X Microcontroller. Proceedings of the Progress in Cryptology—LATINCRYPT 2012—2nd International Conference on Cryptology and Information Security in Latin America, Santiago, Chile.10.1007/978-3-642-33481-8_16 ↗
19. Chen, C.N. (2014). Memory address side-channel analysis on exponentiation. Proceedings of the International Conference on Information Security and Cryptology, Springer.
20. Multiprecision multiplication on AVR revisited10.1007/s13389-015-0093-2 ↗