Single Trace Analysis on Constant Time CDT Sampler and Its Countermeasure
Source abstract
Abstract
The Gaussian sampler is an integral part in lattice-based cryptography as it has a direct connection to security and efficiency. Although it is theoretically secure to use the Gaussian sampler, the security of its implementation is an open issue. Therefore, researchers have started to investigate the security of the Gaussian sampler against side-channel attacks. Since the performance of the Gaussian sampler directly affects the performance of the overall cryptosystem, countermeasures considering only timing attacks are applied in the literature. In this paper, we propose the first single trace power analysis attack on a constant-time cumulative distribution table (CDT) sampler used in lattice-based cryptosystems. From our analysis, we were able to recover every sampled value in the key generation stage, so that the secret key is recovered by the Gaussian elimination. By applying our attack to the candidates submitted to the National Institute of Standards and Technology (NIST), we were able to recover over 99% of the secret keys. Additionally, we propose a countermeasure based on a look-up table. To validate the efficiency of our countermeasure, we implemented it in Lizard and measure its performance. We demonstrated that the proposed countermeasure does not degrade the performance.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Cryptography and Data Security · Chaos-based Image/Signal Encryption · Security in Wireless Sensor Networks
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Center for Information Security Technologies (CIST), Korea University, Seoul 02841, Korea
References (29)
Show source-provided references
1. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer10.1137/S0036144598347011 ↗
2. Ajtai, M., and Dwork, C. (1997, January 4–6). A public-key cryptosystem with worst-case/average-case equivalence. Proceedings of the Twenty-Ninth Annual ACM Symposium on Theory of Computing, El Paso, TX, USA.10.1145/258533.258604 ↗
3. On lattices, learning with errors, random linear codes, and cryptography10.1145/1568318.1568324 ↗
4. Lyubashevsky, V., Peikert, C., and Regev, O. (June, January 30). On ideal lattices and learning with errors over rings. Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, French Riviera, France.
5. Peikert, C. (2010, January 15–19). An efficient and parallel Gaussian sampler for lattices. Proceedings of the Annual Cryptology Conference, Santa Barbara, CA, USA.10.1007/978-3-642-14623-7_5 ↗
6. Galbraith, S.D., and Dwarakanath, N.C. (2012). Efficient sampling from discrete Gaussians for lattice-based cryptography on a constrained device. Preprint.
7. Pöppelmann, T., and Güneysu, T. (2013, January 14–16). Towards practical lattice-based public-key encryption on reconfigurable hardware. Proceedings of the International Conference on Selected Areas in Cryptography, Burnaby, BC, Canada.
8. Improved security proofs in lattice-based cryptography: Using the Rényi divergence rather than the statistical distance10.1007/s00145-017-9265-9 ↗
9. 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 ↗
10. Bruinderink, L.G., Hülsing, A., Lange, T., and Yarom, Y. (2016, January 17–19). Flush, Gauss, and Reload—A cache attack on the BLISS lattice-based signature scheme. Proceedings of the International Conference on Cryptographic Hardware and Embedded Systems, Santa Barbara, CA, USA.
11. Espitau, T., Fouque, P.A., Gérard, B., and Tibouchi, M. (November, January 30). Side-channel attacks on BLISS lattice-based signatures: Exploiting branch tracing against strongswan and electromagnetic emanations in microcontrollers. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA.10.1145/3133956.3134028 ↗
12. Karmakar, A., Roy, S.S., Reparaz, O., Vercauteren, F., and Verbauwhede, I. (2018). Constant-time Discrete Gaussian Sampling. IEEE Trans. Comput.10.1109/TC.2018.2814587 ↗
13. Micciancio, D., and Walter, M. (2017, January 20–24). Gaussian sampling over the integers: Efficient, generic, constant-time. Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA.10.1007/978-3-319-63715-0_16 ↗
14. Compact and Side Channel Secure Discrete Gaussian Sampling
15. Cheon, J.H., Kim, D., Lee, J., and Song, Y. (2018, January 5–7). Lizard: Cut Off the Tail! A Practical Post-quantum Public-Key Encryption from LWE and LWR. Proceedings of the International Conference on Security and Cryptography for Networks, Amalfi, Italy.10.1007/978-3-319-98113-0_9 ↗
16. Hoffstein, J., Pipher, J., and Silverman, J.H. (1998, January 21–25). NTRU: A ring-based public key cryptosystem. Proceedings of the International Algorithmic Number Theory Symposium, Portland, OR, USA.10.1007/BFb0054868 ↗
17. A decade of lattice cryptography10.1561/0400000074 ↗
18. Bos, J., Costello, C., Ducas, L., Mironov, I., Naehrig, M., Nikolaenko, V., Raghunathan, A., and Stebila, D. (2016, January 24–28). Frodo: Take off the ring! practical, quantum-secure key exchange from LWE. Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria.10.1145/2976749.2978425 ↗
19. Du, C., and Bai, G. (2015, January 2–4). Towards efficient discrete Gaussian sampling for lattice-based cryptography. Proceedings of the 2015 25th International Conference on Field Programmable Logic and Applications (FPL), London, UK.
20. Gentry, C., Peikert, C., and Vaikuntanathan, V. (2008, January 17–20). Trapdoors for hard lattices and new cryptographic constructions. Proceedings of the Fortieth Annual ACM Symposium on Theory of Computing, Victoria, BC, Canada.10.1145/1374376.1374407 ↗
21. Knuth, D., and Yao, A. (1976). The complexity of nonuniform random number generation. Algorithms and Complexity: New Directions and Recent Results, Academic Press.
22. 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 ↗
23. Amiel, F., Feix, B., Tunstall, M., Whelan, C., and Marnane, W.P. (2008, January 14–15). Distinguishing multiplications from squaring operations. Proceedings of the International Workshop on Selected Areas in Cryptography, Sackville, NB, Canada.10.1007/978-3-642-04159-4_22 ↗
24. Clavier, C., Feix, B., Gagnerot, G., Roussellet, M., and Verneuil, V. (2010, January 15–17). Horizontal correlation analysis on exponentiation. Proceedings of the International Conference on Information and Communications Security, Barcelona, Spain.10.1007/978-3-642-17650-0_5 ↗
25. Horizontal collision correlation attack on elliptic curves10.1007/s12095-014-0111-8 ↗
26. Clavier, C., Feix, B., Gagnerot, G., Giraud, C., Roussellet, M., and Verneuil, V. (2012, January 9–12). ROSETTA for single trace analysis. Proceedings of the International Conference on Cryptology in India, Kolkata, India.10.1007/978-3-642-34931-7_9 ↗
27. Hanley, N., Kim, H., and Tunstall, M. (2015, January 20–24). Exploiting collisions in addition chain-based exponentiation algorithms using a single trace. Proceedings of the Cryptographers’ Track at the RSA Conference, San Francisco, CA, USA.10.1007/978-3-319-16715-2_23 ↗
28. Göttert, N., Feller, T., Schneider, M., Buchmann, J., and Huss, S. (2012, January 9–12). On the design of hardware building blocks for modern lattice-based encryption schemes. Proceedings of the International Workshop on Cryptographic Hardware and Embedded Systems, Leuven, Belgium.10.1007/978-3-642-33027-8_30 ↗
29. Le Trieu Phong, T.H., Aono, Y., and Moriai, S. (2018, September 17). LOTUS: Algorithm Specifications and Supporting Documentation, Available online: https://csrc.nist.gov/Projects/Post-Quantum-Cryptography/Round-1-Submissions.