journal article·2018-05-31Open access

Efficient Implementations of Four-Dimensional GLV-GLS Scalar Multiplication on 8-Bit, 16-Bit, and 32-Bit Microcontrollers

Jihoon Kwon, Seog Chung Seo, Seokhie Hong

Applied Sciences· Volume 8· Issue 6

Abstract

In this paper, we present the first constant-time implementations of four-dimensional Gallant–Lambert–Vanstone and Galbraith–Lin–Scott (GLV-GLS) scalar multiplication using curve Ted 127 - glv 4 on 8-bit AVR, 16-bit MSP430, and 32-bit ARM processors. In Asiacrypt 2012, Longa and Sica introduced the four-dimensional GLV-GLS scalar multiplication, and they reported the implementation results on Intel processors. However, they did not consider efficient implementations on resource-constrained embedded devices. We have optimized the performance of scalar multiplication using curve Ted 127 - glv 4 on 8-bit AVR, 16-bit MSP430, and 32-bit ARM processors. Our implementations compute a variable-base scalar multiplication in 6,856,026, 4,158,453, and 447,836 cycles on AVR, MSP430, and ARM Cortex-M4 processors, respectively. Recently, Four Q -based scalar multiplication has provided the fastest implementation results on AVR, MSP430, and ARM Cortex-M4 processors to date. Compared to Four Q -based scalar multiplication, the proposed implementations require 4.49% more computational cost on AVR, but save 2.85% and 4.61% cycles on MSP430 and ARM, respectively. Our 16-bit and 32-bit implementation results set new speed records for variable-base scalar multiplication.
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

Center for Information Security Technologies (CIST), Korea University, Seoul 02841, Korea

The Affiliated Institute of ETRI, Daejeon 34044, Korea

References (48)

Show source-provided references
1. Shojafar, M., Canali, C., Lancellotti, R., and Baccarelli, E. (2016, January 27–30). Minimizing computing-plus-communication energy consumptions in virtualized networked data centers. Proceedings of the 2016 IEEE Symposium on Computers and Communication (ISCC), Messina, Italy.10.1109/ISCC.2016.7543890 ↗
2. Q*: Energy and delay-efficient dynamic queue management in TCP/IP virtualized data centers10.1016/j.comcom.2016.12.010 ↗
3. Miller, V.S. (1985). Use of Elliptic Curves in Cryptography. Proceedings of Conference on the Theory and Application of Cryptographic Techniques, Santa Barbara, CA, USA, 18–22 August 1985, Springer.
4. Elliptic curve cryptosystems10.1090/S0025-5718-1987-0866109-5 ↗
5. A method for obtaining digital signatures and public-key cryptosystems10.1145/359340.359342 ↗
6. (2018, April 10). SafeCurves: Choosing Safe Curves for Elliptic-Curve Cryptography. Available online: http://safecurves.cr.yp.to.
7. Barker, E., and Kelsey, J. (2015). NIST Special Publication 800-90A Revision 1: Recommendation for Random Number Generation Using Deterministic Random Bit Generators, National Institute of Standards and Technology. Technical Report.10.6028/NIST.SP.800-90Ar1 ↗
8. Bernstein, D.J. (2006). Curve25519: New Diffie–Hellman Speed Records. Proceedings of 9th International Workshop on Public Key Cryptography, New York, NY, USA, 24–26 April 2006, Springer.10.1007/11745853_14 ↗
9. Ed448-Goldilocks, a new elliptic curve
10. Bernstein, D.J., Birkner, P., Joye, M., Lange, T., and Peters, C. (2008). Twisted Edwards Curves. Proceedings of 1st International Conference on Cryptology in Africa, Casablanca, Morocco, 11–14 June 2008, Springer.10.1007/978-3-540-68164-9_26 ↗
11. Gallant, R.P., Lambert, R.J., and Vanstone, S.A. (2001). Faster Point Multiplication on Elliptic Curves with Efficient Endomorphisms. Proceedings of 21st Annual International Cryptology Conference, Santa Barbara, CA, USA, 19–23 August 2001, Springer.10.1007/3-540-44647-8_11 ↗
12. Galbraith, S.D., Lin, X., and Scott, M. (2009). Endomorphisms for Faster Elliptic Curve Cryptography on a Large Class of Curves. Proceedings of 28th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Cologne, Germany, 26–30 April 2009, Springer.10.1007/978-3-642-01001-9_30 ↗
13. Longa, P., and Gebotys, C. (2010). Efficient Techniques for High-Speed Elliptic Curve Cryptography. Proceedings of 12th International Workshop on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA, 17–20 August 2010, Springer.10.1007/978-3-642-15031-9_6 ↗
14. Longa, P., and Sica, F. (2012). Four-Dimensional Gallant–Lambert–Vanstone Scalar Multiplication. Proceedings of 18th International Conference on the Theory and Application of Cryptology and Information Security, Beijing, China, 2–6 December 2012, Springer.10.1007/978-3-642-34961-4_43 ↗
15. Implementing the 4-dimensional GLV method on GLS elliptic curves with j-invariant 010.1007/s10623-011-9558-1 ↗
16. Bos, J.W., Costello, C., Hisil, H., and Lauter, K. Fast cryptography in genus 2. Proceedings of 32nd Annual International Conference on the Theory and Applications of Cryptographic Techniques, Athens, Greece, 26–30 May 2013, Springer.
17. Bos, J.W., Costello, C., Hisil, H., and Lauter, K. (2013). High-Performance Scalar Multiplication Using 8-Dimensional GLV/GLS Decomposition. Proceedings of 15th International Workshop on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA, 20–23 August 2013, Springer.10.1007/978-3-642-40349-1_19 ↗
18. Oliveira, T., López, J., Aranha, D.F., and Rodríguez-Henríquez, F. (2013). Lambda Coordinates for Binary Elliptic Curves. Proceedings of 15th International Workshop on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA, 20–23 August 2013, Springer.10.1007/978-3-642-40349-1_18 ↗
19. Guillevic, A., and Ionica, S. (2013). Four-Dimensional GLV via the Weil Restriction. Proceedings of 19th International Conference on the Theory and Application of Cryptology and Information Security, Bengaluru, India, 1–5 December 2013, Springer.10.1007/978-3-642-42033-7_5 ↗
20. Smith, B. (2013). Families of Fast Elliptic Curves from Q-Curves. Proceedings of 19th International Conference on the Theory and Application of Cryptology and Information Security, Bengaluru, India, 1–5 December 2013, Springer.10.1007/978-3-642-42033-7_4 ↗
21. Costello, C., and Longa, P. (2015). FourQ: Four-Dimensional Decompositions on a Q-Curve over the Mersenne Prime. Proceedings of 21st International Conference on the Theory and Application of Cryptology and Information Security, Auckland, New Zealand, 29 November–3 December 2015, Springer.10.1007/978-3-662-48797-6_10 ↗
22. FourQNEON: Faster Elliptic Curve Scalar Multiplications on ARM Processors
23. Järvinen, K., Miele, A., Azarderakhsh, R., and Longa, P. (2016). FourQ on FPGA: New Hardware Speed Records for Elliptic Curve Cryptography over Large Prime Characteristic Fields. Proceedings of 18th International Workshop on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA, 17–19 August 2016, Springer.10.1007/978-3-662-53140-2_25 ↗
24. Liu, Z., Longa, P., Pereira, G.C., Reparaz, O., and Seo, H. (2017). FourQ on Embedded Devices with Strong Countermeasures Against Side-Channel Attacks. Proceedings of 19th International Workshop on Cryptographic Hardware and Embedded Systems, Taipei, Taiwan, 25–28 September 2017, Springer.10.1007/978-3-319-66787-4_32 ↗
25. Efficient and secure algorithms for GLV-based scalar multiplication and their implementation on GLV–GLS curves (extended version)10.1007/s13389-014-0085-7 ↗
26. Kocher, P.C. Timing attacks on implementations of Diffie–Hellman, RSA, DSS, and other systems. Proceedings of 16th Annual International Cryptology Conference, Santa Barbara, CA, USA, 18–22 August 1996, Springer.10.1007/3-540-68697-5_9 ↗
27. Theoretical use of cache memory as a cryptanalytic side-channel
28. A normal form for elliptic curves10.1090/S0273-0979-07-01153-6 ↗
29. Bernstein, D.J., and Lange, T. Faster addition and doubling on elliptic curves. Proceedings of 13th International Conference on the Theory and Application of Cryptology and Information Security, Kuching, Malaysia, 2–6 December 2007, Springer.
30. Hisil, H., Wong, K.K.H., Carter, G., and Dawson, E. Twisted Edwards curves revisited. Proceedings of 14th International Conference on the Theory and Application of Cryptology and Information Security, Melbourne, Australia, 7–11 December 2008, Springer.10.1007/978-3-540-89255-7_20 ↗
31. Hankerson, D., Menezes, A.J., and Vanstone, S. (2006). Guide to Elliptic Curve Cryptography, Springer Science & Business Media.
32. Incomplete reduction in modular arithmetic10.1049/ip-cdt:20020235 ↗
33. Microchip (2018, February 26). 8/16-Bit AVR XMEGA A3 Microcontroller. Available online: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8068-8-and16-bit-AVR-XMEGA-A3-Microcontrollers_Datasheet.pdf.
34. Multiprecision multiplication on AVR revisited10.1007/s13389-015-0093-2 ↗
35. Seo, H., Liu, Z., Choi, J., and Kim, H. (2013). Multi-Precision Squaring for Public-Key Cryptography on Embedded Microprocessors. Proceedings of Cryptology—INDOCRYPT 2013, Mumbai, India, 7–10 December 2013, Springer.10.1007/978-3-319-03515-4_15 ↗
36. Texas Instruments (2018, February 26). MSP430FR59xx Mixed-Signal Microcontrollers. Available online: http://www.ti.com/lit/ds/symlink/msp430fr5969.pdf.
37. STMicroelectronics (2018, February 26). UM1472: Discovery kit with STM32F407VG MCU. Available online: http://www.st.com/content/ccc/resource/technical/document/user_manual/70/fe/4a/3f/e7/e1/4f/7d/DM00039084.pdf/files/DM00039084.pdf/jcr:content/translations/en.DM00039084.pdf.
38. (2018, March 10). FourQlib library. Available online: https://github.com/Microsoft/FourQlib.
39. On Lovász’lattice reduction and the nearest lattice point problem10.1007/BF02579403 ↗
40. Park, Y.H., Jeong, S., and Lim, J. (2002). Speeding Up Point Multiplication on Hyperelliptic Curves With Efficiently-Computable Endomorphisms. Proceedings of International Conference on the Theory and Applications of Cryptographic Techniques, Amsterdam, The Netherlands, 28 April–2 May 2002, Springer.10.1007/3-540-46035-7_13 ↗
41. Fast and compact elliptic-curve cryptography
42. Wenger, E., and Werner, M. Evaluating 16-bit processors for elliptic curve cryptography. Proceedings of the International Conference on Smart Card Research and Advanced Applications, Leuven, Belgium, 14–16 September 2011, Springer.10.1007/978-3-642-27257-8_11 ↗
43. Wenger, E., Unterluggauer, T., and Werner, M. 8/16/32 shades of elliptic curve cryptography on embedded processors. Proceedings of Cryptology—INDOCRYPT 2013, Mumbai, India, 7–10 December 2013, Springer.10.1007/978-3-319-03515-4_16 ↗
44. Hinterwälder, G., Moradi, A., Hutter, M., Schwabe, P., and Paar, C. (2014, January 17–19). Full-size high-security ECC implementation on MSP430 microcontrollers. Proceedings of Cryptology—LATINCRYPT 2014, Florianópolis, Brazil.10.1007/978-3-319-16295-9_2 ↗
45. High-speed Curve25519 on 8-bit, 16-bit, and 32-bit microcontrollers10.1007/s10623-015-0087-1 ↗
46. De Santis, F., and Sigl, G. (2016, January 19–21). Towards Side-Channel Protected X25519 on ARM Cortex-M4 Processors. Proceedings of Software performance enhancement for encryption and decryption, and benchmarking, Utrecht, The Netherlands.
47. Renes, J., Schwabe, P., Smith, B., and Batina, L. (2016). μKummer: Efficient Hyperelliptic Signatures and Key Exchange on Microcontrollers. Proceedings of 18th International Workshop on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA, 17–19 August 2016, Springer.10.1007/978-3-662-53140-2_15 ↗
48. Hutter, M., and Schwabe, P. (2013). NaCl on 8-Bit AVR Microcontrollers. Proceedings of Cryptology—AFRICACRYPT 2013, Cairo, Egypt, 22–24 June 2013, Springer.10.1007/978-3-642-38553-7_9 ↗