Skip to main content
. 2023 Mar 4;25(3):454. doi: 10.3390/e25030454
Algorithm 2 Rejection sampling technique

Input: Message u, a matrix A randomly sampled from Zqm×n, S(signature key) sampled from {−d,⋯,0,⋯,d}m×k, H:{0,1}*→{v:v∈{−1,0,1}k,‖v‖<κ}, where d≪qn/m, k∈Z and ≪m, κ is constant and 2κ·kκ≥2100. Then there exists a constant M=O(1).

Output: Vector z and c

1: Obtain y randomly from Dσm

2: c=H(Ay,u)

3: z=Sc+y return (z,c) with probability min(Dσm(z)MDSc,σ(z),1)