journal article·2019-04-05Open access

Lightweight Conversion from Arithmetic to Boolean Masking for Embedded IoT Processor

HanBit Kim, Seokhie Hong, HeeSeok Kim

Applied Sciences· Volume 9· Issue 7

Abstract

A masking method is a widely known countermeasure against side-channel attacks. To apply a masking method to cryptosystems consisting of Boolean and arithmetic operations, such as ARX (Addition, Rotation, XOR) block ciphers, a masking conversion algorithm should be used. Masking conversion algorithms can be classified into two categories: “Boolean to Arithmetic (B2A)” and “Arithmetic to Boolean (A2B)”. The A2B algorithm generally requires more execution time than the B2A algorithm. Using pre-computation tables, the A2B algorithm substantially reduces its execution time, although it requires additional space in RAM. In CHES2012, B. Debraize proposed a conversion algorithm that somewhat reduced the memory cost of using pre-computation tables. However, they still require ( 2 ( k + 1 ) ) entries of length ( k + 1 ) -bit where k denotes the size of the processed data. In this paper, we propose a low-memory algorithm to convert A2B masking that requires only ( 2 k ) ( k ) -bit. Our contributions are three-fold. First, we specifically show how to reduce the pre-computation table from ( k + 1 ) -bit to ( k ) -bit, as a result, the memory use for the pre-computation table is reduced from ( 2 ( k + 1 ) ) ( k + 1 ) -bit to ( 2 k ) ( k ) -bit. Second, we optimize the execution times of the pre-computation phase and the conversion phase, and determine that our pre-computation algorithm requires approximately half of the operations than Debraize’s algorithm. The results of the 8/16/32-bit simulation show improved speed in the pre-computation phase and the conversion phase as compared to Debraize’s results. Finally, we verify the security of the algorithm against side-channel attacks as well as the soundness of the proposed algorithm.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Cryptographic Implementations and Security · Chaos-based Image/Signal Encryption · Coding theory and cryptography

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

Affiliations

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

Department of Cyber Security, College of Science and Technology, Korea University, 2511 Sejong-Ro, Sejong 30019, Korea

References (30)

Show source-provided references
1. Ors, S.B., Gurkaynak, F., Oswald, E., and Preneel, B. (2004, January 5–7). Power-Analysis Attack on an ASIC AES implementation. Proceedings of the 2004 International Conference on Information Technology: Coding and Computing (ITCC 2004), Las Vegas, NV, USA.10.1109/ITCC.2004.1286711 ↗
2. Kocher, P.C. (1996, January 18–22). Timing attacks on implementations of Diffie-Hellman, RSA, DSS, and other systems. Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA.10.1007/3-540-68697-5_9 ↗
3. Gandolfi, K., Mourtel, C., and Olivier, F. (2001, January 14–16). Electromagnetic analysis: Concrete results. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Paris, France.10.1007/3-540-44709-1_21 ↗
4. Kocher, P., Jaffe, J., and Jun, B. (1999, January 15–19). Differential power analysis. Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA.10.1007/3-540-48405-1_25 ↗
5. Oswald, E., and Schramm, K. (2005, January 22–24). An efficient masking scheme for AES software implementations. Proceedings of the International Workshop on Information Security Applications, Jeju Island, Korea.
6. Blömer, J., Guajardo, J., and Krummel, V. (2004, January 9–10). Provably secure masking of AES. Proceedings of the International Workshop on Selected Areas in Cryptography, Waterloo, ON, Canada.10.1007/978-3-540-30564-4_5 ↗
7. Messerges, T.S. (2000). Power Analysis Attacks and Countermeasures for Cryptographic Algorithms, University of Illinois.
8. Coron, J.S., and Goubin, L. (2000, January 17–18). On boolean and arithmetic masking against differential power analysis. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Worcester, MA, USA.10.1007/3-540-44499-8_18 ↗
9. Hong, D., Sung, J., Hong, S., Lim, J., Lee, S., Koo, B.S., Lee, C., Chang, D., Lee, J., and Jeong, K. (2006, January 10–13). HIGHT: A new block cipher suitable for low-resource device. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Yokohama, Japan.10.1007/11894063_4 ↗
10. Hong, D., Lee, J.K., Kim, D.C., Kwon, D., Ryu, K.H., and Lee, D.G. (2013, January 19–21). LEA: A 128-bit block cipher for fast encryption on common processors. Proceedings of the International Workshop on Information Security Applications, Jeju Island, Korea.10.1007/978-3-319-05149-9_1 ↗
11. Beaulieu, R., Treatman-Clark, S., Shors, D., Weeks, B., Smith, J., and Wingers, L. (2015, January 8–12). The SIMON and SPECK lightweight block ciphers. Proceedings of the 2015 52nd ACM/EDAC/IEEE Design Automation Conference (DAC), San Francisco, CA, USA.10.1145/2744769.2747946 ↗
12. Standard, S.H. (2002). FIPS PUB 180-2.
13. Kim, D.C., Hong, D., Lee, J.K., Kim, W.H., and Kwon, D. (2014, January 3–5). LSH: A new fast secure hash function family. Proceedings of the International Conference on Information Security and Cryptology, Seoul, Korea.
14. Bernstein, D.J. (2008). The Salsa20 family of stream ciphers. New Stream Cipher Designs, Springer.10.1007/978-3-540-68351-3_8 ↗
15. Goubin, L. (2001, January 14–16). A sound method for switching between boolean and arithmetic masking. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Paris, France.10.1007/3-540-44709-1_2 ↗
16. Coron, J.S., and Tchulkine, A. (2003, January 8–10). A new algorithm for switching from arithmetic to boolean masking. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Cologne, Germany.10.1007/978-3-540-45238-6_8 ↗
17. Neiße, O., and Pulkus, J. (2004, January 11–13). Switching blindings with a view towards IDEA. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Cambridge, MA, USA.10.1007/978-3-540-28632-5_17 ↗
18. Karroumi, M., Richard, B., and Joye, M. (2014, January 13–15). Addition with blinded operands. Proceedings of the International Workshop on Constructive Side-Channel Analysis and Secure Design, Paris, France.10.1007/978-3-319-10175-0_4 ↗
19. Vadnala, P.K., and Großschädl, J. (2015, January 13–14). Faster Mask Conversion with Lookup Tables. Proceedings of the International Workshop on Constructive Side-Channel Analysis and Secure Design, Berlin, Germany.10.1007/978-3-319-21476-4_14 ↗
20. Coron, J.S., Großschädl, J., and Vadnala, P.K. (2014, January 23–26). Secure conversion between boolean and arithmetic masking of any order. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Busan, Korea.10.1007/978-3-662-44709-3_11 ↗
21. Coron, J.S., Großschädl, J., Tibouchi, M., and Vadnala, P.K. (2015, January 8–11). Conversion from arithmetic to boolean masking with logarithmic complexity. Proceedings of the International Workshop on Fast Software Encryption, Istanbul, Turkey.10.1007/978-3-662-48116-5_7 ↗
22. Debraize, B. (2012, January 9–12). Efficient and provably secure methods for switching from arithmetic to boolean masking. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Leuven, Belgium.10.1007/978-3-642-33027-8_7 ↗
23. Mangard, S., Oswald, E., and Popp, T. (2008). Power Analysis Attacks: Revealing the Secrets of Smart Cards, Springer Science & Business Media.
24. Goubin, L., and Martinelli, A. (October, January 28). Protecting AES with Shamir’s secret sharing scheme. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Nara, Japan.
25. Balasch, J., Faust, S., and Gierlichs, B. (2015, January 26–30). Inner product masking revisited. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Sofia, Bulgaria.10.1007/978-3-662-46800-5_19 ↗
26. Messerges, T.S. (2000, January 10–12). Securing the AES finalists against power analysis attacks. Proceedings of the International Workshop on Fast Software Encryption, New York, NY, USA.10.1007/3-540-44706-7_11 ↗
27. Improved High-Order Conversion From Boolean to Arithmetic Masking10.46586/tches.v2018.i2.22-45 ↗
28. Sim, B.Y., Kang, J., and Han, D.G. (2018). Key Bit-Dependent Side-Channel Attacks on Protected Binary Scalar Multiplication. Appl. Sci., 8.10.3390/app8112168 ↗
29. Tunstall, M., Whitnall, C., and Oswald, E. (2013, January 11–13). Masking tables—An underestimated security risk. Proceedings of the International Workshop on Fast Software Encryption, Singapore.10.1007/978-3-662-43933-3_22 ↗
30. New Type of Collision Attack on First-Order Masked AESs10.4218/etrij.16.0114.0854 ↗