Better Algorithms for LWE and LWR Alexandre Duc, Florian Tram` er, - - PowerPoint PPT Presentation

better algorithms for lwe and lwr
SMART_READER_LITE
LIVE PREVIEW

Better Algorithms for LWE and LWR Alexandre Duc, Florian Tram` er, - - PowerPoint PPT Presentation

Better Algorithms for LWE and LWR Alexandre Duc, Florian Tram` er, Serge Vaudenay EPFL, Lausanne, Switzerland Eurocrypt 2015, Sofia Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 1 / 19 LWE Applications Many


slide-1
SLIDE 1

Better Algorithms for LWE and LWR

Alexandre Duc, Florian Tram` er, Serge Vaudenay

EPFL, Lausanne, Switzerland

Eurocrypt 2015, Sofia

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 1 / 19

slide-2
SLIDE 2

LWE Applications

Many crypto primitives are based on Learning With Errors Trapdoor functions + IBE

[Gentry et al., 2008]

Public-key and symmetric-key cryptosystems

[Regev, 2009], [Peikert, 2009], [Applebaum et al., 2009]

FHE

[Brakerski and Vaikuntanathan, 2011],[Brakerski, 2012],[Gentry et al., 2013]

Our Goal

Better understand the hardness of LWE through an algorithmic analysis, in

  • rder to propose concrete security parameters for these schemes

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 2 / 19

slide-3
SLIDE 3

LWE Applications

Many crypto primitives are based on Learning With Errors Trapdoor functions + IBE

[Gentry et al., 2008]

Public-key and symmetric-key cryptosystems

[Regev, 2009], [Peikert, 2009], [Applebaum et al., 2009]

FHE

[Brakerski and Vaikuntanathan, 2011],[Brakerski, 2012],[Gentry et al., 2013]

Our Goal

Better understand the hardness of LWE through an algorithmic analysis, in

  • rder to propose concrete security parameters for these schemes

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 2 / 19

slide-4
SLIDE 4

Prior Work

Lattice reduction algorithms (LLL, BKZ, ...)

) No precise analysis for large dimensions

Blum-Kalai-Wasserman (BKW) Algorithm

) Asymptotic complexity well understood

2

Θ ⇣

k log k

for LPN 2Θ(k) for LWE

) Precise algorithmic analysis

LPN [Blum et al., 2003], [Levieil and Fouque, 2006] [Fossorier et al., 2006], [Bernstein and Lange, 2012] [Guo et al., 2014], [Bogos et al., 2015] LWE [Albrecht et al., 2013, 2014] LWR

This talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 3 / 19

slide-5
SLIDE 5

Prior Work

Lattice reduction algorithms (LLL, BKZ, ...)

) No precise analysis for large dimensions

Blum-Kalai-Wasserman (BKW) Algorithm

) Asymptotic complexity well understood

2

Θ ⇣

k log k

for LPN 2Θ(k) for LWE

) Precise algorithmic analysis

LPN [Blum et al., 2003], [Levieil and Fouque, 2006] [Fossorier et al., 2006], [Bernstein and Lange, 2012] [Guo et al., 2014], [Bogos et al., 2015] LWE [Albrecht et al., 2013, 2014] LWR

This talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 3 / 19

slide-6
SLIDE 6

Prior Work

Lattice reduction algorithms (LLL, BKZ, ...)

) No precise analysis for large dimensions

Blum-Kalai-Wasserman (BKW) Algorithm

) Asymptotic complexity well understood

2

Θ ⇣

k log k

for LPN 2Θ(k) for LWE

) Precise algorithmic analysis

LPN [Blum et al., 2003], [Levieil and Fouque, 2006] [Fossorier et al., 2006], [Bernstein and Lange, 2012] [Guo et al., 2014], [Bogos et al., 2015] LWE [Albrecht et al., 2013, 2014] LWR

This talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 3 / 19

slide-7
SLIDE 7

Prior Work

Lattice reduction algorithms (LLL, BKZ, ...)

) No precise analysis for large dimensions

Blum-Kalai-Wasserman (BKW) Algorithm

) Asymptotic complexity well understood

2

Θ ⇣

k log k

for LPN 2Θ(k) for LWE

) Precise algorithmic analysis

LPN [Blum et al., 2003], [Levieil and Fouque, 2006] [Fossorier et al., 2006], [Bernstein and Lange, 2012] [Guo et al., 2014], [Bogos et al., 2015] LWE [Albrecht et al., 2013, 2014] LWR

This talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 3 / 19

slide-8
SLIDE 8

LWE Definition

Definition (LWE Oracle)

Let k, q be positive integers. A Learning with Errors (LWE) oracle Πs,χ for a hidden vector s 2 Zk

q and a probability distribution χ over Zq is an

  • racle returning

@a

U

Zk

q , ha, si + ν

| {z }

c

1 A , where ν χ.

Definition (Search-LWE)

The Search-LWE problem is the problem of recovering the hidden secret s given n queries (a(j), c(j)) 2 Zk

q ⇥ Zq obtained from Πs,χ.

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 4 / 19

slide-9
SLIDE 9

LWE Definition

Definition (LWE Oracle)

Let k, q be positive integers. A Learning with Errors (LWE) oracle Πs,χ for a hidden vector s 2 Zk

q and a probability distribution χ over Zq is an

  • racle returning

@a

U

Zk

q , ha, si + ν

| {z }

c

1 A , where ν χ.

Definition (Search-LWE)

The Search-LWE problem is the problem of recovering the hidden secret s given n queries (a(j), c(j)) 2 Zk

q ⇥ Zq obtained from Πs,χ.

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 4 / 19

slide-10
SLIDE 10

Error Distribution(s)

Two main Gaussian error distributions appear in the literature

Definition (Rounded Gaussian Distribution

[Regev, 2009; Albrecht et al., 2013])

Sample x ⇠ N(0, σ2). Output dxc (mod q) 2 ] q

2, q 2].

Definition (Discrete Gaussian Distribution

[Regev, 2009; Brakerski et al., 2013])

Pr[x] / exp(x2/(2σ2)) , for x 2 ] q 2, q 2] . ) Our results apply to both distributions for practical parameters ) We focus on the discrete Gaussian distribution for this talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 5 / 19

slide-11
SLIDE 11

Error Distribution(s)

Two main Gaussian error distributions appear in the literature

Definition (Rounded Gaussian Distribution

[Regev, 2009; Albrecht et al., 2013])

Sample x ⇠ N(0, σ2). Output dxc (mod q) 2 ] q

2, q 2].

Definition (Discrete Gaussian Distribution

[Regev, 2009; Brakerski et al., 2013])

Pr[x] / exp(x2/(2σ2)) , for x 2 ] q 2, q 2] . ) Our results apply to both distributions for practical parameters ) We focus on the discrete Gaussian distribution for this talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 5 / 19

slide-12
SLIDE 12

Error Distribution(s)

Two main Gaussian error distributions appear in the literature

Definition (Rounded Gaussian Distribution

[Regev, 2009; Albrecht et al., 2013])

Sample x ⇠ N(0, σ2). Output dxc (mod q) 2 ] q

2, q 2].

Definition (Discrete Gaussian Distribution

[Regev, 2009; Brakerski et al., 2013])

Pr[x] / exp(x2/(2σ2)) , for x 2 ] q 2, q 2] . ) Our results apply to both distributions for practical parameters ) We focus on the discrete Gaussian distribution for this talk

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 5 / 19

slide-13
SLIDE 13

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Florian Tram`

er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-14
SLIDE 14

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Partition queries according to values of first block

[ 1 ] [ 2

  • 1

4 ] [

  • 2

1 ] 1 [ 1 ] [

  • 2

1 ] [

  • 5

1

  • 1

] 2 [

  • 1

] [ 3 3

  • 4

] [ 4 2 ] [ 2 ] [ 2 ] [

  • 1

4

  • 3

] 5 [

  • 2

] [

  • 1

1

  • 3

] [ 5 5 1 ] 3 [

  • 2

] [

  • 2

5

  • 5

] [ 1 3

  • 4

] 2 . . .

BKW reduction in Z9

11, r = 3, b = 3

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-15
SLIDE 15

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Partition queries according to values of first block, and combine

[ 1 ] [ 2

  • 1

4 ] [

  • 2

1 ] 1 [ 1 ] [

  • 2

1 ] [

  • 5

1

  • 1

] 2 [

  • 1

] [ 3 3

  • 4

] [ 4 2 ] [ 2 ] [ 2 ] [

  • 1

4

  • 3

] 5 [

  • 2

] [

  • 1

1

  • 3

] [ 5 5 1 ] 3 [

  • 2

] [

  • 2

5

  • 5

] [ 1 3

  • 4

] 2 . . .

BKW reduction in Z9

11, r = 3, b = 3

  • +

+ +

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-16
SLIDE 16

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Partition queries according to values of first block, and combine

[ 1 ] [ 2

  • 1

4 ] [

  • 2

1 ] 1 [ ] [ 4

  • 1

3 ] [ 3

  • 1

2 ] 3 [ ] [ 5 2 ] [

  • 2

4 3 ] 1 [ 2 ] [ 2 ] [

  • 1

4

  • 3

] 5 [ ] [

  • 1

3

  • 3

] [ 4

  • 2
  • 2

] 2 [ ] [

  • 2
  • 4
  • 5

] [

  • 4

4 ] 3 . . .

BKW reduction in Z9

11, r = 3, b = 3

  • +

+ +

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-17
SLIDE 17

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Delete the leftover query in each partition

[ 1 ] [ 2

  • 1

4 ] [

  • 2

1 ] 1 [ ] [ 4

  • 1

3 ] [ 3

  • 1

2 ] 3 [ ] [ 5 2 ] [

  • 2

4 3 ] 1 [ 2 ] [ 2 ] [

  • 1

4

  • 3

] 5 [ ] [

  • 1

3

  • 3

] [ 4

  • 2
  • 2

] 2 [ ] [

  • 2
  • 4
  • 5

] [

  • 4

4 ] 3 . . .

BKW reduction in Z9

11, r = 3, b = 3

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-18
SLIDE 18

The BKW Algorithm

Reduction Phase ([Blum et al., 2003; Albrecht et al., 2013]) In each oracle query, split a into r blocks of b elements (r · b = k) ⇥ a1 . . . ab ⇤ ⇥ ab+1 . . . a2b ⇤ . . . ⇥ a(r1)b+1 . . . arb ⇤ | c

  • Iterate r 1 times until a single non-zero block remains

[ ] [ ] [

  • 1

4

  • 3

] 1 [ ] [ ] [ 2

  • 1

] 2 [ ] [ ] [ 1

  • 4

] 1 [ ] [ ] [

  • 1
  • 1

3 ] . . .

BKW reduction in Z9

11, r = 3, b = 3

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 6 / 19

slide-19
SLIDE 19

The BKW Algorithm

Solving Phase ([Albrecht et al., 2013]) Apply a last reduction to obtain queries with 1 non-zero element The noise now corresponds to the sum of 2r variables drawn from χ c0 ha0, si = ν1 ± ν2 ± · · · ± ν2r Guess 1 element of the secret s by maximum-likelihood estimation

Let m denote the number of remaining queries Exhaustive search through all q possibilities ! Θ(m · q)

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 7 / 19

slide-20
SLIDE 20

The BKW Algorithm

Solving Phase ([Albrecht et al., 2013]) Apply a last reduction to obtain queries with 1 non-zero element The noise now corresponds to the sum of 2r variables drawn from χ c0 ha0, si = ν1 ± ν2 ± · · · ± ν2r Guess 1 element of the secret s by maximum-likelihood estimation

Let m denote the number of remaining queries Exhaustive search through all q possibilities ! Θ(m · q)

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 7 / 19

slide-21
SLIDE 21

The BKW Algorithm

Solving Phase ([Albrecht et al., 2013]) Apply a last reduction to obtain queries with 1 non-zero element The noise now corresponds to the sum of 2r variables drawn from χ c0 ha0, si = ν1 ± ν2 ± · · · ± ν2r Guess 1 element of the secret s by maximum-likelihood estimation

Let m denote the number of remaining queries Exhaustive search through all q possibilities ! Θ(m · q)

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 7 / 19

slide-22
SLIDE 22

The BKW Algorithm (Discrete Transforms)

Alternative Solving Phase Guess a block of b elements of s at once by computing a DFT Idea proposed by Levieil and Fouque for LPN

[Levieil and Fouque, 2006]

Significant improvement over original BKW

[Blum et al., 2003]

Still asymptotically 2Θ(

k log k )

Can be generalized for LWE (and LWR)

One reduction less ! lower noise FFT algorithms ! Θ(m0 + qb · b · log q)

Could be better than Θ(m · q) for MLE

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 8 / 19

slide-23
SLIDE 23

The BKW Algorithm (Discrete Transforms)

Alternative Solving Phase Guess a block of b elements of s at once by computing a DFT Idea proposed by Levieil and Fouque for LPN

[Levieil and Fouque, 2006]

Significant improvement over original BKW

[Blum et al., 2003]

Still asymptotically 2Θ(

k log k )

Can be generalized for LWE (and LWR)

One reduction less ! lower noise FFT algorithms ! Θ(m0 + qb · b · log q)

Could be better than Θ(m · q) for MLE

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 8 / 19

slide-24
SLIDE 24

The BKW Algorithm (Discrete Transforms)

Alternative Solving Phase Guess a block of b elements of s at once by computing a DFT Idea proposed by Levieil and Fouque for LPN

[Levieil and Fouque, 2006]

Significant improvement over original BKW

[Blum et al., 2003]

Still asymptotically 2Θ(

k log k )

Can be generalized for LWE (and LWR)

One reduction less ! lower noise FFT algorithms ! Θ(m0 + qb · b · log q)

Could be better than Θ(m · q) for MLE

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 8 / 19

slide-25
SLIDE 25

Our Results

We improve the results of [Albrecht et al., 2013] by applying a DFT in the solving phase

Remove heuristic assumptions about sums of rounded Gaussians Conceptually simpler analysis ! closed form expression for time complexity

First algorithmic cryptanalysis of LWR using similar techniques

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 9 / 19

slide-26
SLIDE 26

Our Solving Phase

After (r-1) reduction rounds, we have m queries (a(i), c(i)) remaining

) View the a(i) as elements in Zb

q

) Let s0 2 Zb

q be the secret block to recover.

) Let θq := exp(2πi/q)

Define f (x) :=

m

X

j=1 {a(j)=x} θc(j) q

, 8x 2 Zb

q

The DFT of f is ˆ f (α) =

m

X

j=1

θ(ha(j),αic(j))

q

, 8α 2 Zb

q

In particular ˆ f (s0) =

m

X

j=1

θ

(νj,1±···±νj,2r−1) q

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 10 / 19

slide-27
SLIDE 27

Our Solving Phase

After (r-1) reduction rounds, we have m queries (a(i), c(i)) remaining

) View the a(i) as elements in Zb

q

) Let s0 2 Zb

q be the secret block to recover.

) Let θq := exp(2πi/q)

Define f (x) :=

m

X

j=1 {a(j)=x} θc(j) q

, 8x 2 Zb

q

The DFT of f is ˆ f (α) =

m

X

j=1

θ(ha(j),αic(j))

q

, 8α 2 Zb

q

In particular ˆ f (s0) =

m

X

j=1

θ

(νj,1±···±νj,2r−1) q

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 10 / 19

slide-28
SLIDE 28

DFT Distinguisher

For the correct secret block s0, we have E h ˆ f (s0)) i =

m

X

j=1

E  θ

(νj,1±···±νj,2r−1) q

  • =

m

X

j=1

E  cos ✓2π q νj,1 ◆ + i · sin ✓2π q νj,1 ◆ 2r−1 νj,l are iid

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 11 / 19

slide-29
SLIDE 29

DFT Distinguisher

Lemma

For q an odd integer, let X ⇠ χ where χ is a discrete Gaussian over Zq with parameter σ. Let Y ⇠ 2πX/q. Then E[cos(Y )] 1 2π2σ2 q2 and E[sin(Y )] = 0 . Proof: Follows from Lemma 1.3 in [Banaszczyk, 1993]. νj,l are iid

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 11 / 19

slide-30
SLIDE 30

DFT Distinguisher

For the correct secret block s0, we have E h ˆ f (s0)) i =

m

X

j=1

E  θ

(νj,1±···±νj,2r−1) q

  • =

m

X

j=1

E  cos ✓2π q νj,1 ◆ | {z }

12π2σ2/q2

+ i · sin ✓2π q νj,1 ◆ | {z } 2r−1 νj,l are iid

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 11 / 19

slide-31
SLIDE 31

DFT Distinguisher

For the correct secret block s0, we have E h ˆ f (s0)) i =

m

X

j=1

E  θ

(νj,1±···±νj,2r−1) q

  • =

m

X

j=1

E  cos ✓2π q νj,1 ◆ + i · sin ✓2π q νj,1 ◆ 2r−1 m · ✓ 1 2π2σ2 q2 ◆2r−1 . νj,l are iid

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 11 / 19

slide-32
SLIDE 32

DFT Distinguisher

For the correct secret block s0, we have E h ˆ f (s0)) i =

m

X

j=1

E  θ

(νj,1±···±νj,2r−1) q

  • =

m

X

j=1

E  cos ✓2π q νj,1 ◆ + i · sin ✓2π q νj,1 ◆ 2r−1 m · ✓ 1 2π2σ2 q2 ◆2r−1 . For a fixed α 6= s0, we have E h ˆ f (α) i = 0 . νj,l are iid

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 11 / 19

slide-33
SLIDE 33

DFT Distinguisher

Example graph of Re(ˆ f ), for small parameters adapted from [Regev, 2009]: q = 17, σ = 0.85, r = 6, b = 4, m = 212 E h ˆ f (s0) i 811 E h ˆ f (α) i = 0

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 12 / 19

slide-34
SLIDE 34

DFT Distinguisher

Algorithm: output argmax

α

Re(ˆ f (α)) Failure Probability: Pr[argmax

α

Re(ˆ f (α)) 6= s0]  qb · exp m 8 · ✓ 1 2π2σ2 q2 ◆2r ! .

) Follows from Hoeffding’s inequality and a union bound

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 13 / 19

slide-35
SLIDE 35

DFT Distinguisher

Algorithm: output argmax

α

Re(ˆ f (α)) Failure Probability: Pr[argmax

α

Re(ˆ f (α)) 6= s0]  qb · exp m 8 · ✓ 1 2π2σ2 q2 ◆2r ! .

) Follows from Hoeffding’s inequality and a union bound

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 13 / 19

slide-36
SLIDE 36

LWE Results

Regev’s cryptosystem [Regev, 2009] with success probability 0.99. q = nextPrime(k2), σ = O ✓ q p k log2 k ◆ k q log(#ops) log(#ops)

[Albrecht et al., 2013]

64 4 099 52.62 54.85 80 6 421 63.23 65.78 96 9 221 73.72 76.75 112 12 547 85.86 87.72 128 16 411 95.03 98.67 160 25 601 115.87 120.43 224 50 177 160.34 163.76 256 65 537 178.74 185.35

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 14 / 19

slide-37
SLIDE 37

Learning With Roundings

Deterministic variant of LWE Hardness reductions from LWE

[Banerjee et al., 2012; Alwen et al., 2013]

) Exponential parameters or bound on oracle samples

Many applications for PRFs

[Banerjee et al., 2012; Boneh et al., 2013]

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 15 / 19

slide-38
SLIDE 38

LWR Definition

Definition (LWR Oracle)

Let k and q p 2 be positive integers. A Learning with Rounding (LWR) oracle Λs,p for a hidden vector s 2 Zk

q, s 6= 0 is an oracle

returning B B @a

U

Zk

q ,

⇠✓p q ◆ ha, si ⌫ | {z }

c

1 C C A . ) For fixed a, s the ‘errors’ introduced by the oracle are deterministic

Definition (Search-LWR)

The Search-LWR problem is the problem of recovering the hidden secret s given n queries (a(j), c(j)) 2 Zk

q ⇥ Zp obtained from Λs,p.

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 16 / 19

slide-39
SLIDE 39

Algorithm Analysis (sketch)

Same algorithm as for LWE but the analysis is more tricky Analysis of the characteristic function of the rounding errors E h eitξi for t 2 R, ξ = ✓p q ◆ ha, si c In LWR, a and ξ are not independent!

Since a(i) ? ? a(j) we still have ξ(i) ? ? ξ(j) for i 6= j

For q prime and p 4, we get

A lower bound for E h ˆ f (s0) i An upper bound for E h ˆ f (α) i for a fixed α 6= s0

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 17 / 19

slide-40
SLIDE 40

Algorithm Analysis (sketch)

Same algorithm as for LWE but the analysis is more tricky Analysis of the characteristic function of the rounding errors E h eitξi for t 2 R, ξ = ✓p q ◆ ha, si c In LWR, a and ξ are not independent!

Since a(i) ? ? a(j) we still have ξ(i) ? ? ξ(j) for i 6= j

For q prime and p 4, we get

A lower bound for E h ˆ f (s0) i An upper bound for E h ˆ f (α) i for a fixed α 6= s0

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 17 / 19

slide-41
SLIDE 41

Algorithm Analysis (sketch)

Same algorithm as for LWE but the analysis is more tricky Analysis of the characteristic function of the rounding errors E h eitξi for t 2 R, ξ = ✓p q ◆ ha, si c In LWR, a and ξ are not independent!

Since a(i) ? ? a(j) we still have ξ(i) ? ? ξ(j) for i 6= j

For q prime and p 4, we get

A lower bound for E h ˆ f (s0) i An upper bound for E h ˆ f (α) i for a fixed α 6= s0

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 17 / 19

slide-42
SLIDE 42

Algorithm Analysis (sketch)

Same algorithm as for LWE but the analysis is more tricky Analysis of the characteristic function of the rounding errors E h eitξi for t 2 R, ξ = ✓p q ◆ ha, si c In LWR, a and ξ are not independent!

Since a(i) ? ? a(j) we still have ξ(i) ? ? ξ(j) for i 6= j

For q prime and p 4, we get

A lower bound for E h ˆ f (s0) i An upper bound for E h ˆ f (α) i for a fixed α 6= s0

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 17 / 19

slide-43
SLIDE 43

Results

Example graph of Re(ˆ f ) for small parameters adapted from

[Regev, 2009] and [Alwen et al., 2013]

q = 17, p = 5, r = 6, b = 4, m = 212 E h ˆ f (s0) i 488 E h ˆ f (α) i  0.0003

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 18 / 19

slide-44
SLIDE 44

Open Problems

Find a better algorithm for LWR that leverages the fact that errors are deterministic Prove that LWR with polynomial parameters and unlimited oracle samples is hard Analyze the heuristic independence-assumptions used in various works on BKW for LPN and LWE

Florian Tram` er (EPFL) Better Algorithms for LWE and LWR Eurocrypt 2015 19 / 19