Combinatorial methods for solving LWE 1
Thomas Johansson1
- 1Dept. of Electrical and Information Technology, Lund University
1Last part to appear at Asiacrypt 2018 London September, 2017
Outline 1 Introduction to LWE The LWE Problem Motivation 2 - - PowerPoint PPT Presentation
Combinatorial methods for solving LWE 1 Thomas Johansson 1 1 Dept. of Electrical and Information Technology, Lund University 1 Last part to appear at Asiacrypt 2018 London September, 2017 Outline 1 Introduction to LWE The LWE Problem Motivation
1Last part to appear at Asiacrypt 2018 London September, 2017
Thomas Johansson , 2 / 58
Thomas Johansson , 3 / 58
q.
Thomas Johansson , 3 / 58
q.
Thomas Johansson , 3 / 58
q.
Thomas Johansson , 3 / 58
Thomas Johansson , 4 / 58
Thomas Johansson , 5 / 58
Thomas Johansson , 6 / 58
Thomas Johansson , 7 / 58
Thomas Johansson , 8 / 58
◮ Known to be as hard as worst-case hard lattice problems. ◮ Efficient cryptographic primitives. ◮ Extremely versatile, e.g., Fully Homomorphic Encryption
◮ Post-quantum cryptography
◮ Especially for practical security. Say, how to choose the
Thomas Johansson , 9 / 58
◮ Short Integer Solution (SIS) problem ◮ Bounded Distance Decoding (BDD) problem
◮ Performs asymptotically well for very small noise.
2Unbounded number of samples are provided. Thomas Johansson , 10 / 58
Thomas Johansson , 11 / 58
Thomas Johansson , 11 / 58
3It is also denoted Xσ, and we omit σ if there is no ambiguity. Thomas Johansson , 12 / 58
√ 2π q
√ 2π q
4Divergence, relative entropy, Kullback-Leibler divergence Thomas Johansson , 13 / 58
Thomas Johansson , 14 / 58
$
Thomas Johansson , 15 / 58
Thomas Johansson , 16 / 58
Thomas Johansson , 17 / 58
Thomas Johansson , 18 / 58
Thomas Johansson , 19 / 58
◮ The best asymptotic algorithm with sub-exponential
◮ Divide the length n vector r into a parts, each with size
◮ Merge and Sort (called one BKW step)—A trade-off: ◮ Store all the samples. ◮ Sort according to the bottom b entries of the vector r. ◮ Subtract samples in the same partition.
◮ Do a − 1 BKW steps iteratively to zero out the bottom a − 1
Thomas Johansson , 19 / 58
◮ Add Fast Walsh-Hadamard transform (FWHT).
◮ Secret-error transformation for LPN.
◮ Subspace hypothesis testing using covering codes. Thomas Johansson , 20 / 58
◮ Apply BKW for solving LWE.
◮ Secret-error transformation for LWE.
◮ Introduce the lazy modulus switching technique. ◮ The best known BKW-type binary-LWE solver.
◮ Add Fast Fourier transform (FFT). ◮ The best known BKW-type LWE solver.
◮ Coded-BKW. ◮ Improved asymptotic performance. Thomas Johansson , 20 / 58
Thomas Johansson , 21 / 58
◮ Let C be a q-ary linear code. ◮ Construct a lattice over this code
5Compared with the work [AlbrechtFaugèreFitzpatrickPerret14], in which
Thomas Johansson , 21 / 58
◮ Let C be a q-ary linear code. ◮ Construct a lattice over this code
Thomas Johansson , 21 / 58
◮ Make the secret ^
◮ Zero out the bottom t1b
◮ Make the next bottom ncod
◮ Exhaust the top ntop entries of
Thomas Johansson , 22 / 58
Thomas Johansson , 23 / 58
◮ rI is the part of r reduced in step i, containing Ni positions. ◮ Rewrite rI = cI + eI. Thus,
◮ Summing or subtracting two vectors mapped to the same
5Standard BKW can be viewed as coded-BKW using a [b, b] trivial code. Thomas Johansson , 24 / 58
i
set = 2t2−i+1σ2 ΛNi ,b.
Thomas Johansson , 25 / 58
6This means that the fundamental regions are spherical. 7Its length is ntot = ncod + ntest. Thomas Johansson , 26 / 58
2 N , where G(Λ) is called the normalized
Ni ).
Thomas Johansson , 27 / 58
◮ Intuition from the central limit theorem (CLT).
5000 10000 15000 20000 Thomas Johansson , 28 / 58
◮ Intuition from the central limit theorem (CLT).
5000 10000 15000 20000 Thomas Johansson , 28 / 58
q 631 2053 16411 code [2,1] [3,1] [4,1] [2,1] [3,1] [4,1] [2,1] [3,1] E[e2] 101.26† 1277.29† 4951.53 329.24† 6185.67 29107.73 2631.99† 99166.25 1/G 12.46 12.71 12.80 12.47 12.65 12.78 12.47 12.62 The value with a † sign means that it is optimal. Thomas Johansson , 29 / 58
◮ The accumulated complexity of
◮ Guessing probability Fg. ◮ The probability that all the
◮ Testing probability Ft. ◮ The probability that the
8For any γ ≥ 1, Pr[v > γσ√n; v $
(1−γ2) 2
Thomas Johansson , 30 / 58
final = 2t1+t2σ2 + γ2σ2σ2
2
9The constant factor in the formula is chosen as 4. The divergence ∆(Xσfinal U) will be computed numerically. Thomas Johansson , 31 / 58
n q σ Complexity (log2 #Zq) Coded-BKW [DTV15] NTL-BKZ BKZ 2.0 LP Model Simulator Model [Regev05] 128 16,411 11.81 84.5 95.0 61.6 61.9 256 65,537 25.53 145.1 178.7 175.5 174.5 512 262,147 57.06 287.6 357.5 386.8 518.6 [LindnerPeikert11] 128 2,053 2.70 69.7 83.7 54.5 57.1 256 4,099 3.34 123.8 154.2 156.2 151.2 512 4,099 2.90 209.2 271.8 341.9 424.5
◮ The table shows results for solving various classic LWE
◮ The improvement is significant when n is large. ◮ For example, we gain a factor of almost 270 when solving the
Thomas Johansson , 32 / 58
n q σ Complexity (log2 #Zq) Coded-BKW [DTV15] NTL-BKZ BKZ 2.0 LP Model Simulator Model [Regev05] 128 16,411 11.81 84.5 95.0 61.6 61.9 256 65,537 25.53 145.1 178.7 175.5 174.5 512 262,147 57.06 287.6 357.5 386.8 518.6 [LindnerPeikert11] 128 2,053 2.70 69.7 83.7 54.5 57.1 256 4,099 3.34 123.8 154.2 156.2 151.2 512 4,099 2.90 209.2 271.8 341.9 424.5
◮ For example, the ones ([GFSBH12] [RVMCV14] [DRVV15])
Thomas Johansson , 32 / 58
n q σ Complexity (log2 #Zq) Coded-BKW [DTV15] NTL-BKZ BKZ 2.0 LP Model Simulator Model [Regev05] 128 16,411 11.81 84.5 95.0 61.6 61.9 256 65,537 25.53 145.1 178.7 175.5 174.5 512 262,147 57.06 287.6 357.5 386.8 518.6 [LindnerPeikert11] 128 2,053 2.70 69.7 83.7 54.5 57.1 256 4,099 3.34 123.8 154.2 156.2 151.2 512 4,099 2.90 209.2 271.8 341.9 424.5
1 12 and it is LF1 type.
◮ Many heuristics, e.g., the hybrid, LF2, unnatural selection (pruning),
◮ Adopting the hybrid and LF2 heuristics, we solve the Regev instance with
Thomas Johansson , 32 / 58
15 30 45 60 5 10 15 20 variance roof standard BKW coded-BKW theory coded-BKW simulation w/ unnatural selection
Thomas Johansson , 33 / 58
Thomas Johansson , 34 / 58
Thomas Johansson , 34 / 58
Thomas Johansson , 35 / 58
Thomas Johansson , 36 / 58
Thomas Johansson , 37 / 58
Thomas Johansson , 38 / 58
Thomas Johansson , 39 / 58
Thomas Johansson , 40 / 58
Thomas Johansson , 41 / 58
Thomas Johansson , 42 / 58
Thomas Johansson , 43 / 58
Thomas Johansson , 44 / 58
Thomas Johansson , 45 / 58
Thomas Johansson , 46 / 58
Thomas Johansson , 47 / 58
Thomas Johansson , 48 / 58
Thomas Johansson , 49 / 58
Thomas Johansson , 50 / 58
Thomas Johansson , 51 / 58
Thomas Johansson , 52 / 58
Thomas Johansson , 53 / 58
Thomas Johansson , 54 / 58
Thomas Johansson , 55 / 58
Thomas Johansson , 56 / 58
Thomas Johansson , 57 / 58
Thomas Johansson , 57 / 58
Thomas Johansson , 58 / 58