**On Rejection Sampling Algorithms for Centered Discrete Gaussian Distribution over Integers**

*Yusong Du and Baodian Wei*

**Abstract: **Lattice-based cryptography has been accepted as a promising candidate for public key cryptography in the age of quantum computing. Discrete Gaussian sampling is one of fundamental operations in many lattice-based cryptosystems. In this paper, we discuss a sub-problem of discrete Gaussian sampling, which is to sample from a centered discrete Gaussian distribution over the integers with positive standard deviation and zero center. We propose three alternative rejection sampling algorithms for centered discrete Gaussian distributions with standard deviation in two specific forms. The first algorithm is designed for the case where the standard deviation is an positive integer, and it requires neither pre-computation storage nor floating-point arithmetic. While the other two algorithms are fit for a standard deviation that is an integer multiple of a fixed real number (approximately equal to 0.849). These two algorithms require fixed look-up tables of very small size (e.g. 128 bits and 320 bits respectively), but they are much more efficient than the first algorithm. The experimental results show that our algorithms have better performance than that of two rejection sampling algorithms proposed by Karney in 2016 and by Ducas et al.\ in 2013 respectively. The expected numbers of random bits used in our algorithms are significantly smaller than that of random bits used in Karney's rejection sampling algorithm.

**Category / Keywords: **lattice-based cryptography ; discrete Gaussian sampling; rejection sampling

**Date: **received 7 Oct 2017, last revised 9 Oct 2017

**Contact author: **duyusong at mail sysu edu cn

**Available format(s): **PDF | BibTeX Citation

**Version: **20171011:141157 (All versions of this report)

**Short URL: **ia.cr/2017/988

[ Cryptology ePrint archive ]