Mathematical Problems in Engineering
Volume 2021 (2021), Article ID 9948618, 12 pages
https://doi.org/10.1155/2021/9948618

Research Article

Rejection Sampling Revisit: How to Choose Parameters in Lattice-Based Signature

Zhongxiang Zheng, Anyu Wang, and Lingyue Qin

Institute for Advanced Study, Tsinghua University, Beijing 100084, China

Correspondence should be addressed to Zhongxiang Zheng; zhengzx13@tsinghua.org.cn

Received 30 March 2021; Accepted 19 May 2021; Published 7 June 2021

Academic Editor: Xiao Chen

Copyright © 2021 Zhongxiang Zheng et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract.

Rejection sampling technology is a core tool in the design of lattice-based signatures with ‘Fiat–Shamir with Aborts’ structure, and it is related to signing efficiency and signature, size as well as security. In the rejection sampling theorem proposed by Lyubashevsky, the masking vector of rejection sampling is chosen from discrete Gaussian distribution. However, in practical designs, the masking vector is more likely to be chosen from bounded uniform distribution due to better efficiency and simpler implementation. Besides, as one of the third-round candidate signatures in the NIST postquantum cryptography standardization process, the 3rd round version of CRYSTALS-Dilithium has proposed a new method to decrease the rejection probability in order to achieve better efficiency and smaller signature size by decreasing the number of nonzero coefficients of the challenge polynomial according to the security levels. However, it is seen that small entropies in this new method may lead to higher risk of forgery attack compared with former schemes proposed in its 2nd version. Thus, in this paper, we first analyze the complexity of forgery attack for small entropies and then introduce a new method to decrease the rejection probability without loss of security including the security against forgery attack. This method is achieved by introducing a new rejection sampling theorem with tighter bound by utilizing Rényi divergence where masking vector follows uniform distribution. By observing large gaps between the security claim and actual security bound in CRYSTALS-Dilithium, we propose two series of adapted parameters for CRYSTALS-Dilithium. The first set can improve the efficiency of the signing process in CRYSTALS-Dilithium by factors of , according to the security levels, and ensure the security against known attacks, including forgery attack. And, the second set can reduce the signature size by a factor of with small improvements in efficiency at the same security level.

1. Introduction

With the rapid developments in quantum algorithms and computations, research in lattice-based cryptography has attracted considerable attention because lattice-based cryptosystems are likely to be effective against quantum computing attacks in the future. The first lattice-based cryptosystem is proposed by Ajtai and Dwork [1] in 1997 which is also known as the first cryptosystem that achieves worst case to average case reduction. Since then, many well-known lattice-based cryptosystems have been designed, including GGH [2] by Goldreich et al. and NTRU [3] by Hoffstein et al., as well as LWE by Regev [4]. Nowadays, schemes with various features, such as digital signatures [5, 6], identity-based and attribute-based encryption [7, 8], zero-knowledge proof [9], and fully homomorphic schemes [10], can be realized based on these basic designs. On the contrary, the developments of methods in solving lattice problem including enumeration [11, 12] and lattice reduction algorithms [13, 14], as well as sieving algorithms [15, 16], also contribute to the selection of parameters in these schemes. As a result, lattice-based cryptosystems are now regarded as promising candidates for the NIST postquantum cryptography standardization process.

Most lattice-based signatures are designed based on three general structures, namely, GGH structure, Fiat–Shamir structure, and GPV trapdoor structure. The GGH signature is the first practical lattice-based signature scheme which is proposed in [2] and known as the source of signatures following the GGH structure. This scheme is based on the closest vector problem (CVP) and enjoys the advantages such as high efficiency, small signature size, and simple verification. However, analysis [17] shows that signatures of the scheme leak the information of the secret key; thus, the secret key can be recovered by collecting enough number of signatures. As a result, many variants based on GGH structure concentrate on improving the security against the attack proposed in [17]. As for another basic type, Fiat–Shamir structure is first used to design practical lattice-based signature scheme in [18]. This work combines the Fiat–Shamir structure with rejection sampling technology to avoid the risk of secret leakage. Due to its high security, high efficiency, and small signature size, many variants have been proposed based on this work including [19–21]. Among the signature schemes based on Fiat–Shamir structure, two schemes named CRYSTALS-Dilithium [22] and qTESLA [23] have been widely studied because they are known as the 2nd round NIST postquantum cryptography standardization candidates. Moreover, recently CRYSTALS-Dilithium has become one of the 3rd round NIST candidates of signatures. The other type of lattice-based signature schemes is based on GPV trapdoor structure [24], such as [25, 26]. Compared with those based on Fiat–Shamir structure, the schemes have smaller signature size but lower efficiency. Furthermore, it should be noted that the scheme FALCON [27] is a 3rd round NIST postquantum cryptography standardization candidate with the GPV trapdoor structure.

As an important subroutine in Fiat–Shamir structure, rejection sampling technology is widely used in the design of signatures schemes. The idea of this process is simple but effective, where it demands the signer selectively outputs signatures to ensure that the secret key should not be leaked by signatures. To achieve this goal, the rejection sampling process will choose to output a signature or reject it according to a fixed condition. This technology is first introduced in [18] and then further improved in [19]. When first introduced in [18], the vector for masking the secret is chosen from a bounded uniform distribution and then changed to be chosen from discrete Gaussian distribution in [19]. Besides, a theoretical analysis is also provided in [19] to prove that, under properly chosen parameters, a masking vector sampled from discrete Gaussian distribution can be used to protect the secret key from leakage by ensuring the outputted distribution of the rejection sampling process is statistically close to a certain discrete Gaussian distribution. In other words, the upper bound of statistical distance between the output distribution and the ideal one is small.

Although discrete Gaussian distribution enjoys the property of high security, sampling from it demands more time and space complexity than from a uniform distribution. As a result, many practical schemes choose to sample from a bounded uniform distribution for the masking vector including the two NIST candidates, CRYSTALS-Dilithium [22] and qTESLA [23]. Besides, the method to increase the success probability of rejection sampling without loss of securities is an important issue in the design of these schemes. For example, in the third-round version of CRYSTALS-Dilithium, a new technique is used to decrease the rejection probability to achieve better efficiency and smaller signature size by decreasing the number of nonzero coefficients of the challenge polynomial according to the security levels. However, it is seen that small entropies in this new method may lead to higher risk of forgery attack compared with former schemes proposed in the 2nd version which will be described in Section 2.

In this paper, we propose another way to increase the success probability of rejection sampling without loss of security. This idea is obtained by firstly proposing a more practical rejection sampling theorem with masking vector sampled from bounded uniform distribution, where a tighter bound is achieved by using Rényi divergence rather than statistical distance. Secondly, we use the proposed theorem to analyze the parameters used in CRYSTALS-Dilithium and observe that more accurate security estimation can be obtained due to the new rejection sampling theorem which allows us to adjust the parameters by balancing the securities and optimize their efficiencies as well as sizes. Our result shows that, by choosing proper parameters, the efficiency of sign algorithm in CRYSTALS-Dilithium can be further improved depending on the security levels. As lattice-based signatures with the Fiat–Shamir structure usually have higher efficiency but larger size compared with other types of lattice-based signatures, how to minimize the size of public key and signature is a core issue in the designs. So, we further propose a variant of the scheme with optimized size by utilizing our rejection sampling theorem which reduces the size of signature at the same security level. This is the third contribution of our paper.

The rest of the paper is organized as follows. In Section 2, we introduce some background about lattice, discrete Gaussian sampling, LWE problem, divergences, and rejection sampling technology. Our analysis of the rejection sampling theorem for the uniform distribution and its proof are presented in Section 3. In Section 4, some applications of the above theorem are described, including a security analysis of CRYSTALS-Dilithium parameters and several variants of CRYSTALS-Dilithium which can provide higher efficiency of signing and smaller signature size. Finally, we give our conclusion in Section 5.

2. Preliminaries

For , let be the maximum integer that is no more than and let be the nearest integer to . Let denote the set of integers in .

2.1. Lattice

An -dimensional lattice is a discrete additive subgroup in which can be represented as the set of integer linear combination of linearly independent vectors , i.e.,

where is called a basis of which is not unique, is the rank of the lattice, a lattice is called full-rank if . The determinant of is defined as

The quantity is invariant regardless of the choice of . The dual lattice is defined as

q-ary lattice: as a kind of important lattices in lattice-based cryptography, a q-ary lattice refers to the lattice such that , where is an integer.

Two types of q-ary lattices frequently used in lattice cryptography are defined as follows, with respect to an matrix :

2.2. Gaussian Distribution over Lattices

For , the Gaussian function is defined as

for , where is called the width. When or , the corresponding subscript is usually omitted for simplicity.

Definition 1. (discrete Gaussian distribution). For and , the discrete Gaussian distribution over is defined as

where and . We call the standard deviation for .

It is difficult to calculate the sum directly, but it is related to the sum of values of a Gaussian function over the dual lattice according to the celebrated Poisson summation formula.

Lemma 1. (Poisson summation formula, see [28]). For an -dimensional lattice , let and , and the following hold:

(1)(2)

There is a tail bound for the continuous Gaussian distribution and the discrete Gaussian distribution also has a similar property which was first proven by Banaszczyk [28]. The following is a refinement to the bound of Banaszczyk given in [29].

Lemma 2. (tail bound, see [29]). For the variable , then . For an -dimensional lattice and a vector , let and , and we have

2.3. LWE Problem

Learning with error (LWE) problem was proposed by Regev [4] in 2005 and has been widely used in the construction of lattice-based cryptography. We first introduce some definitions in order to describe LWE problems.

Definition 2. (LWE distribution). Let , and be an error distribution over ; given a secret vector , the LWE distribution over is sampled by choosing and and outputting .

The LWE problem has a search version and a decision version, which are defined as follows.

Definition 3. (search-LWE). Given samples that are independently sampled from with a fixed secret , the goal of search-LWE is to find the secret vector .

In the following part of this paper, we denote to be the matrix formed by columns and , where .

Definition 4. (decision-LWE). Given independent samples that follow either the LWE distribution with a fixed secret or the uniform distribution, the goal of decision-LWE is to decide which distribution the samples follow.

To make LWE more practical in cryptography, variants of LWE problems (e.g., ring-LWE and module-LWE) have been investigated. More details of these variants can be found in [30].

2.4. Statistical Distance and Rényi Divergence

Statistical distance and Rényi divergence are two measures of closeness of two probability distributions which are often used in security proofs. The definitions of statistical distance and Rényi divergence are as follows.

Definition 5. (statistical distance). For any two discrete probability distributions and over a countable support , the statistical distance between the two distributions, denoted as , is defined by

Definition 6. (Rényi divergence). For any two discrete probability distributions and such that and , the Rényi divergence of order , denoted as , is defined by

According to the research of [31], using Rényi divergence to estimate security can provide smaller parameters in designing lattice-based schemes than using statistical distance.

2.5. Rejection Sampling

Rejection sampling is an important tool which is widely used in designing lattice-based signature [19, 22, 23]. It is first proposed in [18] and can be used to produce a distribution that is statistically close to another one. In this way, one can output a distribution without leaking information of the secret keys and the lower bound of the complexity against attacks which use the information of signatures and has been given in Theorem 1.

Theorem 1. (rejection sampling theorem, see [19]). Let be a subset of in which all elements have norms less than T, be some element in such that , and be a probability distribution. Then, there exists a constant such that the distribution of the following algorithm is as follows:

(1),(2),(3)output with probability .

Within statistical distance of the distribution, algorithm is as follows:

(1),(2),(3)Output with probability .

Moreover, the probability that outputs something is at least .

2.6. Overview of Signatures Based on Fiat–Shamir with Aborts

Fiat–Shamir with Aborts approach is an LWE-based signature framework that is firstly introduce in [18]. Based on this framework, many improvements have been proposed for better security and efficiency in [19, 22, 23]. The overview of the ‘Fiat–Shamir with Aborts’ framework can be summarized in Figure 1. Note that the original scheme proposed in [18] is based on the LWE problem, and further improvements [19, 22, 23] are mainly designed based on ring-LWE or module-LWE to achieve better efficiency. In this paper, we concentrate on practical designs; thus, all elements as well as computations in the following paper are in the polynomial ring .

Figure 1: Framework of signatures based on Fiat–Shamir with Aborts.

2.7. The Entropy of Challenge Polynomial

In the updated version of the 3rd-round submission of CRYSTALS-Dilithium, a new method is introduced to decrease the rejection probability in order to achieve better efficiency where the number of nonzero coefficients of the challenge polynomial varies according to the security levels. For example, in the 3rd round version, the challenge polynomial are chosen from , and , respectively, for the parameters with the security claims of , and 343, while in the 2nd version, is chosen from for all parameters. Since all coefficients of the challenge polynomial are in the set of , the entropy of a challenge polynomial chosen from is bit. However, small entropy leads to a direct forgery attack without any valid message for ‘Fiat–Shamir with Aborts’ structure. Recall the verification process of the schemes; given the public key , forgery attack can be performed by finding a set of signature which satisfies and . For any fixed , an adversary can forge a signature by picking some that satisfied and check if . Since the entropy of is much larger than the entropy of , the adversary shall succeed with the complexity of in the classical model. Furthermore, by regarding the formula as a function of , the Grover algorithm can be used to achieve quadratical speedup with the complexity of in the quantum model. As a result, the securities of these sets of parameters against forgery attack shall be , and 128 in the quantum model, where the corresponding security claims are , and 343. For these seven sets of parameters, the last six of them suffer from this quantum forgery attack and the last two sets of parameters even may not be secure in the classical model, as shown in Table 1. Since the proposed idea of decreasing the rejection probability may also decrease the security of the scheme, in Section 3, we will provide another method to achieve this goal without loss of security and use it to introduce variants of CRYSTALS-Dilithium which achieve better efficiency and smaller signature size. Since the security claims of the third round parameters in CRYSTALS-Dilithium have large gaps with the complexities of the forgery attack, our comparisons shall be conducted based on the second version of parameters in CRYSTALS-Dilithium rather than the third-round ones (note that the practical verification process of the 3rd version CRYSTALS-Dilithium is more complex than the framework shown in Figure 1 due to the application of hint vector as well as two stages’ sampling process; however, it is easy to check that the proposed forgery attack also applies to this practical scheme).

Table 1: Forgery attack for parameters of CRYSTALS-Dilithium 3rd version.

Parameters
Dilithium: 1− −
Dilithium: 1−
Dilithium: 2
Dilithium: 3
Dilithium: 4
Dilithium: 5+
Dilithium: 5++

Weight of
24
30
39
49
60
60
60

Entropy of
135
160
192
225
257
257
257

Classical forgery attack
135
160
192
225
257
257
257

Quantum forgery attack
67
80
96
112
128
128
128

Security claim
55
89
112
165
229
298
343

3. Rejection Sampling Theorem for Uniform Distribution

Rejection sampling theorem proposed in [19] can be used to estimate the security of the rejection sampling process against secret recovery attacks by computing the upper bound of the statistical distance of the output distribution and the target one where the two distributions follow discrete Gaussian distribution with distinct centers. However, in practical designs, uniform distributions are often used rather than discrete Gaussian distributions. This makes it more efficient and more convenient to sample elements, but the complexity of recovering secret key from the output of such samples remains unknown. Besides, by utilizing Rényi divergence instead of statistical distance used in the rejection sampling theorem of [19], a tighter security bound which leads to smaller parameter size can be obtained. So, let us start with clearly defining the problem and then providing a theorem about solving the problem.

Definition 7. (distinguish problem for rejection sampling with bounded uniform masking vector). Let be a uniform distribution with elements in , be an arbitrary distribution with the support , and be a positive constant. Given a number of samples, the goal is to decide which of the two algorithms the samples follow.
Algorithm :

(1),(2),(3)if , restart,(4)output .

Algorithm :

(1),(2)if , restart,(3)output .

Theorem 2. Given a distinguish problem for rejection sampling with bounded uniform masking vector defined by the probability distribution and and integers , the Rényi divergence between the output distributions, denoted as , is

where ,

and , , and is defined as follows:

Proof. Let us first study the distribution of without rejection. As the support of and are separately sampled from and , it is clear that has the support as . For any element in its support, follows the probability distribution as follows:

where denotes the cumulative distribution function of the distribution and .
When applying rejection sampling with the condition to , whether or not shall influence the output distribution, if , we have as follows:

And, for , we have as follows:

where .
As a result, we now have the output distribution of algorithm denoted as , and the output distribution of algorithm can be derived in a similar way. For , we have as follows:

Now, we have clear descriptions of the output distributions of the two algorithms, and it is seen that the two distributions are exactly the same when , and attacks utilizing the information of outputs can only be performed for the cases when . To measure the distances between the two probability distributions and evaluate the security, we shall recall the definition of Rényi divergence.
For any two discrete probability distributions and such that and , the Rényi divergence of order , denoted as , is defined by

Combining the result of and the definition of , this finishes the proof.

To measure the complexities of distinguish problems by Theorem 2, the probability distribution of should be used. Note that, in signatures based on Fiat–Shamir with Aborts approach, as shown in Figure 1, a secret key may be used for different signatures where random chosen challenge polynomials are outputted. Their product corresponds to in Theorem 2, where . As a result, the probability distribution of , denoted as , should be measured according to the challenge polynomials. As each challenge polynomial has nonzero coefficients randomly chosen from , the entropy of a challenge polynomial is bit. For a set of signatures signed with the same secret key if all challenge polynomials share a number of the same nonzero coefficients which forms a set containing elements. Then, , and its first part is a constant and its second part can be measured as random variables following specific distribution because vary. Since the upper bound of is , is bounded by , and the Rényi divergence, denoted as , of the distinguish problem in Definition 7 is bounded by taking as in Theorem 2. Besides, to collect challenge polynomials which share the set , the probability of finding a challenge polynomial is computed by , where the last 2 is due to the same values with the opposite symbol. So, the advantage for the distinguish problem under is given by and the advantage of a distinguish problem with any challenge polynomials is naturally obtained by enumerating all possible as follows:

4. Applications of the Rejection Sampling Theorem for Uniform Distribution

4.1. Distinguish Analysis for Rejection Sampling

With the help of Theorem 2 and equation (18), we can evaluate the security against attacks utilizing information of signatures by Rényi divergence for practical lattice-based signature schemes, including the NIST candidates. We shall take the parameters used in CRYSTALS-Dilithium as examples to show how to analyze the lower bound of the complexities of these attacks by utilizing Theorem 2. Besides, it should be noted that the compress technology proposed in [21] is commonly used to reduce the length of signature (which corresponds the rejection condition about the infinite norm of low bits shown in line 11 of Figure 1), this process can be viewed as another distinguish problem of rejection sampling for uniform distribution with different parameters. Take the parameters used in CRYSTALS-Dilithium-II and III which separately correspond to the first and the second level of NIST’s categories as examples, we can normalize them into the following distinguish problems in Table 2, where we use ‘R’ to denote the distinguish problem of rejection sampling process and ‘C’ to denote the distinguish problem of compress process.

Table 2: Parameters of distinguish problem in CRYSTALS-Dilithium.

Parameters
Dilithium-II-R
Dilithium-II-C
Dilithium-III-R
Dilithium-III-C

325
325
275
275

523776−1
261888
523776−1
261888

The convolution of 60 independent uniform distributions

Since the upper bound of advantage for attacks utilizing the outputs of signatures is given by equation (18), say when advantage is no more than , the lower bound of complexity for attacks is at least . Thus, applying Theorem 2 to the two distinguish problems, we can get the following results of security analysis, as shown in Table 3. Besides, we also take the proposed forgery attack into consideration because the securities of schemes are decided by the most optimal complexity of all known attacks. Thus, it is seen that, in CRYSTALS-Dilithium, the complexities of attacks utilizing the information of signatures are much larger than other types of attacks especially for the forgery attack brought by the small entropy of . By observing the large gaps between complexities of different type attacks, refined parameters which can provide better efficiency, smaller sizes, and higher security can be obtained by balancing these complexities. We will discuss how to choose parameters and what can be achieved in Section 4.2.

Table 3: Security of CRYSTALS-Dilithium.

Dilithium-II
Dilithium-III

SIS block size
340
488

Classical/quantum SIS security
99.28/90.1
142.49/129.59

LWE block size
255
377

Classical/quantum LWE security
96.24/90.1
142.28/130.91

300.43
317.58

298.34
315.58

Entropy of
257
257

Classical/quantum forgery attack
257/128
257/128

Security against known attacks
90.1
128

4.2. Choosing New Parameters for Rejection Sampling of Dilithium

In Section 4.1, we estimate the complexities of corresponding distinguish problems and observe there exist large gaps between the complexities of different types of attacks. As the parameters of rejection sampling relate to the efficiency, the security, and the signature size of the schemes at the same time, we can balance the gaps in order to achieve better efficiency, higher security, and smaller size of the schemes. The balancing shall be used based on parameters of CRYSTALS-Dilithium, and it should be noted that this technology can be naturally applied to other signature schemes using rejection sampling for uniform distributed masking vectors. Our approaches contain the following steps:

(1)Utilizing the method in Section 2.7 to balance the complexities of forgery attack by adjusting proper entropy of according to the security levels(2)Utilizing Theorem 2 to balance the complexities of the two distinguish problems by setting and separately for rejection sampling process and compress process rather than using the same for the two processes(3)Utilizing the methods of primal attack, dual attack, and SIS attack used in [22] to balance the complexities of various types of attacks by choosing proper , and

To apply these modifications, new parameter should be introduced to replace , and the revised framework is shown in Figure 2. Besides, since the choices of parameters for are very close, the hardness reduction of the framework in Figure 2 follows the one in Figure 1 naturally.

Figure 2: Revised framework of signatures based on Fiat–Shamir with Aborts.

The success probability of rejection sampling and compress process relates to the efficiency of signature because the sign process will be continuously repeated until a proper signature is outputted, and the success probability is computed as

Based on these analyses, we choose parameters by designing a program which contains the algorithms of success probabilities, primal attack estimation, dual attack estimation, sis attack estimation, and the distinguish attack estimation given by Theorem 2. With the input of parameters, the program outputs these complexities and properties. And, the final results are obtained by testing different values iteratively and make a balance of these complexities and the efficiency.

The comparisons of the parameters in this work (separately denoted as This Work-I and This Work-II corresponding to different security levels) and those in CRYSTALS-Dilithium are shown in Table 4. The implementations can be found in https://github.com/Anonymous496/Digital-signatures. And, the experiments of efficiency are conducted with the environment of Intel(R) Core(TM) i5-8250U CPU @ 1.60 GHz.

Table 4: Parameters of the adapted scheme I.

Parameters
Dilithium-II
This Work-I
Dilithium-III
This Work-II

8380417
8380417
8380417
8380417

14
14
14
14

Weight of
60
60
60
60

Entropy of
257
257
257
257

523776
523776
523776
523776

261888
261888
261888
261888

325
—
275
—

—
170
—
180

—
170
—
180

80
80
96
96

pk size (bytes)
1184
1184
1472
1472

sig size (bytes)
2044
2044
2701
2701

Expectation of repeats
5.74
2.49
6.56
3.42

keygen (ms)
0.10
0.10
0.15
0.15

Sign (ms)
0.55
0.34
0.85
0.60

Verify (ms)
0.12
0.12
0.17
0.17

SIS block size
340
340
488
488

Classical/quantum SIS security
99.28/90.1
99.28/90.1
142.49/129.59
142.49/129.59

LWE block size
255
255
377
377

Classical/quantum LWE security
96.24/90.1
96.24/90.1
142.28/130.91
142.28/130.91

300.43
95.19
317.58
129.77

298.34
93.19
315.58
128.0

Classical/quantum forgery attack
257/128
196/98
257/128
257/128

Security against known attacks
90.1
90.1
128
128

As the signing procedure will repeat several times until a signature is outputted, the success probabilities influence the efficiency of signing process directly. In other words, the efficiency of the signing process with our technique are faster than that in CRYSTALS-Dilithium according to the security levels. Furthermore, since the sizes of public key and signature are considered as more important factors than their efficiency for signature schemes based on Fiat–Shamir structure, we can use the proposed technology to introduce a new set of parameters with smaller signature size and keep the same security level with small improvement in efficiency. We denote the adapted scheme as this Work-III, and the comparisons can be found in Table 5.

Table 5: Parameters of the adapted scheme II.

Parameters
CRYSTALS-Dilithium-II
This Work-III

8380417

14
10

Weight of
60
60

Entropy of
257
196

523776

261888
32736()

Error distribution
Uniform in
Central binomial in

325
—

—
46

—
48

80
80

pk size (bytes)
1184
1184

sig size (bytes)
2044
1756

Expectation of repeats
5.74
7.7

keygen (ms)
0.10
0.10

Sign (ms)
0.55
0.54

Verify (ms)
0.12
0.12

SIS block size
340
449

Classical/quantum SIS security
99.28/90.1
130.82/118.99

LWE block size
255
349

Classical/quantum LWE security
96.24/90.1
101.91/92.49

300.43
92.46

298.34
94.15

Classical/quantum forgery attack
257/128
196/98

Security against known attacks
90.1
92.46

From the comparison, it is seen that the signature size of the proposed scheme is smaller than the original one with small improvement in signing efficiency and keeps the same security level compared with CRYSTALS-Dilithium-II. It should be noted that similar optimizations can also be applied to other sets of parameters in CRYSTALS-Dilithium.

5. Conclusion

In this paper, we study rejection sampling technology for lattice-based signatures and concentrate on the conditions for practical designs. We first introduce a new rejection sampling theorem for bounded uniform distributed masking vectors which is widely used in current designs where a tighter result is obtained due to the usage of Rényi divergence, and then, we use the proposed theorem to analyze the complexities against attacks utilizing information of signatures for the parameters in CRYSTALS-Dilithium and observe that there exist large gaps between complexities of different types of attacks, e.g., forgery attack and key recovery attack. Thirdly, we propose two series of adapted parameters for CRYSTALS-Dilithium. The first set can improve the efficiency of the signing process in CRYSTALS-Dilithium by factors of according to the security levels and ensure the same signature size as well as security claims including forgery attack. And, the second set can reduce the signature size by a factor of with small improvement in signing efficiency and keep the same security level.

Data Availability

The data used to support the findings of the study are available at https://github.com/Anonymous496/Digital-signatures.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported by National Key Research and Development Program of China (Grant nos. 2017YFA0303903 and 2018YFA0704701), Major Program of Guangdong Basic and Applied Research (Grant no. 2019B030302008), and Major Scientific and Technological Innovation Project of Shandong Province (Grant no. 2019JZZY010133).

References

M. Ajtai and C. Dwork, “A public-key cryptosystem with worst-case/average-case equivalence,” in Proceedings of the Twenty-Ninth Annual ACM Symposium on the Theory of Computing, pp. 284–293, ACM, El Paso, TX, USA, May 1997.

O. Goldreich, S. Goldwasser, and S. Halevi, “Public-key cryptosystems from lattice reduction problems,” in Advances in Cryptology - CRYPTO ’97, 17th Annual International Cryptology Conference Proceedings, pp. 112–131, Springer, Santa Barbara, CA, USA, August 1997, vol. 1294, Lecture Notes in Computer Science.

J. Hoffstein, J. Pipher, and J. H. Silverman, “NTRU: a ring-based public key cryptosystem,” in Proceedings of the Algorithmic Number Theory, Third International Symposium, ANTS-III, pp. 267–288, Springer, Portland, OR, USA, June 1998, vol. 1423, Lecture Notes in Computer Science.

O. Regev, “On lattices, learning with errors, random linear codes, and cryptography,” in Proceedings of the 37th Annual ACM Symposium on Theory of Computing, pp. 84–93, ACM, Baltimore, MD, USA, May 2005.

R. Hiromasa, “Digital signatures from the middle-product LWE,” in Proceedings of the Provable Security - 12th International Conference, ProvSec 2018, pp. 239–257, Springer, Jeju, South Korea, October 2018, vol. 11192, Lecture Notes in Computer Science.

V. Lyubashevsky, “Digital signatures based on the hardness of ideal lattice problems in all rings,” in Proceedings of the Advances in Cryptology - ASIACRYPT 2016 - 22nd International Conference on the Theory and Application of Cryptology and Information Security, Part II, pp. 196–214, Hanoi, Vietnam, December 2016, , vol. 10032, Lecture Notes in Computer Science.

C. Xie, J. Weng, W. Lu, and L. Hou, “General construction of revocable identity-based fully homomorphic signature,” Science China Information Sciences, vol. 63, no. 3, 2020.

F. Luo, S. Al-Kuwari, W. Susilo, and D. H. Duong, “Attribute-based proxy re-signature from standard lattices and its applications,” Computer Standards & Interfaces, vol. 75, p. 103499, 2021.

Y. Zhang, X. Liu, Y. Yin, Q. Zhang, and H. Jia, “On new zero-knowledge proofs for fully anonymous lattice-based group signature scheme with verifier-local revocation,” in Proceedings of the Applied Cryptography and Network Security Workshops - ACNS 2020, pp. 381–399, Springer, Rome, Italy, June 2020, vol. 12418, Lecture Notes in Computer Science.

F. Luo, F. Wang, K. Wang, and K. Chen, “Fully homomorphic encryption based on the ring learning with rounding problem,” IET Information Security, vol. 13, no. 6, pp. 639–648, 2019.

U. Fincke and M. Pohst, “Improved methods for calculating vectors of short length in a lattice, including a complexity analysis,” Mathematics of Computation, vol. 44, no. 170, p. 463, 1985.

N. Gama, P. Q. Nguyen, and O. Regev, “Lattice enumeration using extreme pruning,” in Proceedings of the Advances in Cryptology - EUROCRYPT 2010, 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, pp. 257–278, Springer, Monaco/French Riviera, May 2010, vol. 6110, Lecture Notes in Computer Science.

A. K. Lenstra, H. W. Lenstra, and L. Lovász, “Factoring polynomials with rational coefficients,” Mathematische Annalen, vol. 261, no. 6, pp. 515–534, 1982.

Y. Chen and P. Q. Nguyen, “Bkz 2.0: better lattice security estimates,” in Proceedings of the Advances in Cryptology - ASIACRYPT 2011 - 17th International Conference on the Theory and Application of Cryptology and Information Security, pp. 1–20, Springer, Seoul, South Korea, December 2011, vol. 7073, Lecture Notes in Computer Science.

P. Q. Nguyen and T. Vidick, “Sieve algorithms for the shortest vector problem are practical,” Journal of Mathematical Cryptology, vol. 2, no. 2, pp. 181–207, 2008.

A. Becker, L. Ducas, N. Gama, and T. Laarhoven, “New directions in nearest neighbor searching with applications to lattice sieving,” in Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms, SODA 2016, pp. 10–24, SIAM, Arlington, VA, USA, January 2016.

P. Q. Nguyen and O. Regev, “Learning a parallelepiped: cryptanalysis of GGH and NTRU signatures,” in Proceedings of the Advances in Cryptology - EUROCRYPT 2006, 25th Annual International Conference on the Theory and Applications of Cryptographic Techniques, pp. 271–288, Springer, St. Petersburg, Russia, May 2006, vol. 4004, Lecture Notes in Computer Science.

V. Lyubashevsky, “Fiat-shamir with aborts: applications to lattice and factoring-based signatures,” in Proceedings of the Advances in Cryptology - ASIACRYPT 2009, 15th International Conference on the Theory and Application of Cryptology and Information Security, pp. 598–616, Springer, Tokyo, Japan, December 2009, vol. 5912, Lecture Notes in Computer Science.

V. Lyubashevsky, “Lattice signatures without trapdoors,” in Advances in Cryptology - EUROCRYPT 2012 - 31st Annual International Conference on the Theory and Applications of Cryptographic Techniques Proceedings, pp. 738–755, Springer, Cambridge, UK, April 2012, vol. 7237, Lecture Notes in Computer Science.

T. Güneysu, V. Lyubashevsky, and T. Pöppelmann, “Practical lattice-based cryptography: a signature scheme for embedded systems,” in Cryptographic Hardware and Embedded Systems - CHES 2012 - 14th International Workshop Proceedings, pp. 530–547, Springer, Leuven, Belgium, September 2012, vol. 7428, Lecture Notes in Computer Science.

S. Bai and S. D. Galbraith, “An improved compression technique for signatures based on learning with errors,” in Topics in Cryptology - CT-RSA 2014 - The Cryptographer’s Track at the RSA Conference 2014 Proceedings, pp. 28–47, Springer, San Francisco, CA, USA, February 2014, vol. 8366, Lecture Notes in Computer Science.

V. Lyubashevsky, L. Ducas, E. Kiltz et al., “Crystals-dilithium,” Transactions on Cryptographic Hardware and Embedded Systems, vol. 2018, no. 1, pp. 238–268, 2018.

E. Alkim, S. L. M. Paulo, Barreto, and N. Bindel, “The lattice-based digital signature scheme qTESL,” in Proceedings of the Applied Cryptography and Network Security‐18th International Conference {ACNS} 2020, Rome, Italy, October 2020.

C. Gentry, C. Peikert, and V. Vaikuntanathan, “Trapdoors for hard lattices and new cryptographic constructions,” in Proceedings of the 40th Annual ACM Symposium on Theory of Computing, pp. 197–206, ACM, Victoria, British Columbia, Canada, May 2008.

J. Alwen and C. Peikert, “Generating shorter bases for hard random lattices,” Theory of Computing Systems, vol. 48, no. 3, pp. 535–553, 2011.

D. Micciancio and C. Peikert, “Trapdoors for lattices: simpler, tighter, faster, smaller,” in Advances in Cryptology - EUROCRYPT 2012 - 31st Annual International Conference on the Theory and Applications of Cryptographic Techniques Proceedings, pp. 700–718, Springer, Cambridge, UK, April 2012, vol. 7237, Lecture Notes in Computer Science.

T. Prest, P. A. Fouque, J. Hoffstein et al., “Falcon,” National Institute of Standards and Technology, Gaithersburg, MD, USA, 2018.

W. Banaszczyk, “New bounds in some transference theorems in the geometry of numbers,” Mathematische Annalen, vol. 296, no. 1, pp. 625–635, 1993.

C. Tian, M. Liu, and G. Xu, “Measure inequalities and the transference theorem in the geometry of numbers,” Proceedings of the American Mathematical Society, vol. 142, no. 1, pp. 47–57, 2014.

V. Lyubashevsky, C. Peikert, and O. Regev, “On ideal lattices and learning with errors over rings,” in Proceedings of the Advances in Cryptology - EUROCRYPT 2010, 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, pp. 1–23, French Riviera, May 2010.

S. Bai, T. Lepoint, A. Roux-Langlois, A. Sakzad, D. Stehlé, and R. Steinfeld, “Improved security proofs in lattice-based cryptography: using the Rényi divergence rather than the statistical distance,” Journal of Cryptology, vol. 31, no. 2, pp. 610–640, 2018.