a subfield logarithm attack against ideal lattices part 1
play

A subfield-logarithm attack against ideal lattices, part 1: the - PDF document

A subfield-logarithm attack against ideal lattices, part 1: the number-field sieve D. J. Bernstein University of Illinois at Chicago & Technische Universiteit Eindhoven Sieving small integers 0 using primes 2 3 5 7: 1


  1. A subfield-logarithm attack against ideal lattices, part 1: the number-field sieve D. J. Bernstein University of Illinois at Chicago & Technische Universiteit Eindhoven

  2. Sieving small integers ✐ ❃ 0 using primes 2 ❀ 3 ❀ 5 ❀ 7: 1 2 2 3 3 4 2 2 5 5 6 2 3 7 7 8 2 2 2 9 3 3 10 2 5 11 12 2 2 3 13 14 2 7 15 3 5 16 2 2 2 2 17 18 2 3 3 19 20 2 2 5 etc.

  3. Sieving ✐ and 611 + ✐ for small ✐ using primes 2 ❀ 3 ❀ 5 ❀ 7: 1 612 2 2 3 3 2 2 613 3 3 614 2 4 2 2 615 3 5 5 5 616 2 2 2 7 6 2 3 617 7 7 618 2 3 8 2 2 2 619 9 3 3 620 2 2 5 10 2 5 621 3 3 3 11 622 2 12 2 2 3 623 7 13 624 2 2 2 2 3 14 2 7 625 5 5 5 5 15 3 5 626 2 16 2 2 2 2 627 3 17 628 2 2 18 2 3 3 629 19 630 2 3 3 5 7 20 2 2 5 631 etc.

  4. Have complete factorization of the “congruences” ✐ (611 + ✐ ) for some ✐ ’s. 14 ✁ 625 = 2 1 3 0 5 4 7 1 . 64 ✁ 675 = 2 6 3 3 5 2 7 0 . 75 ✁ 686 = 2 1 3 1 5 2 7 3 . 14 ✁ 64 ✁ 75 ✁ 625 ✁ 675 ✁ 686 = 2 8 3 4 5 8 7 4 = (2 4 3 2 5 4 7 2 ) 2 . 611 ❀ 14 ✁ 64 ✁ 75 � 2 4 3 2 5 4 7 2 ✠ ✟ gcd = 47. 611 = 47 ✁ 13.

  5. Why did this find a factor of 611? Was it just blind luck: gcd ❢ 611 ❀ random ❣ = 47?

  6. Why did this find a factor of 611? Was it just blind luck: gcd ❢ 611 ❀ random ❣ = 47? No. By construction 611 divides s 2 � t 2 where s = 14 ✁ 64 ✁ 75 and t = 2 4 3 2 5 4 7 2 . So each prime ❃ 7 dividing 611 divides either s � t or s + t . Not terribly surprising (but not guaranteed in advance!) that one prime divided s � t and the other divided s + t .

  7. Why did the first three completely factored congruences have square product? Was it just blind luck?

  8. Why did the first three completely factored congruences have square product? Was it just blind luck? Yes. The exponent vectors (1 ❀ 0 ❀ 4 ❀ 1) ❀ (6 ❀ 3 ❀ 2 ❀ 0) ❀ (1 ❀ 1 ❀ 2 ❀ 3) happened to have sum 0 mod 2.

  9. Why did the first three completely factored congruences have square product? Was it just blind luck? Yes. The exponent vectors (1 ❀ 0 ❀ 4 ❀ 1) ❀ (6 ❀ 3 ❀ 2 ❀ 0) ❀ (1 ❀ 1 ❀ 2 ❀ 3) happened to have sum 0 mod 2. But we didn’t need this luck! Given long sequence of vectors, quickly find nonempty subsequence with sum 0 mod 2.

  10. This is linear algebra over F 2 . Guaranteed to find subsequence if number of vectors exceeds length of each vector. e.g. for ♥ = 671: 1( ♥ + 1) = 2 5 3 1 5 0 7 1 ; 4( ♥ + 4) = 2 2 3 3 5 2 7 0 ; 15( ♥ + 15) = 2 1 3 1 5 1 7 3 ; 49( ♥ + 49) = 2 4 3 2 5 1 7 2 ; 64( ♥ + 64) = 2 6 3 1 5 1 7 2 .

  11. This is linear algebra over F 2 . Guaranteed to find subsequence if number of vectors exceeds length of each vector. e.g. for ♥ = 671: 1( ♥ + 1) = 2 5 3 1 5 0 7 1 ; 4( ♥ + 4) = 2 2 3 3 5 2 7 0 ; 15( ♥ + 15) = 2 1 3 1 5 1 7 3 ; 49( ♥ + 49) = 2 4 3 2 5 1 7 2 ; 64( ♥ + 64) = 2 6 3 1 5 1 7 2 . F 2 -kernel of exponent matrix is gen by (0 1 0 1 1) and (1 0 1 1 0); e.g., 1( ♥ +1)15( ♥ +15)49( ♥ +49) is a square.

  12. Plausible conjecture: Q sieve can separate the odd prime divisors of any ♥ , not just 611. Given ♥ and parameter ② : 1. Try to fully factor ✐ ( ♥ + ✐ ) into products of primes ✔ ② 1 ❀ 2 ❀ 3 ❀ ✿ ✿ ✿ ❀ ② 2 ✠ ✟ for ✐ ✷ . 2. Look for nonempty set of ✐ ’s with ✐ ( ♥ + ✐ ) completely factored and with ◗ ✐ ( ♥ + ✐ ) square. ✐ 3. Compute gcd ❢ ♥❀ s � t ❣ where r ◗ s = ◗ ✐ and t = ✐ ( ♥ + ✐ ). ✐ ✐

  13. How large does ② have to be for this to find a square?

  14. How large does ② have to be for this to find a square? Let’s aim for number of completely factored congruences to exceed length of each vector, guaranteeing a square. (This is somewhat pessimistic; smaller numbers usually work.) Vector length ✙ ②❂ log ② . Will there be ❃ ②❂ log ② completely factored congruences out of ② 2 congruences?

  15. What’s chance of random ✐ ( ♥ + ✐ ) being ② -smooth , i.e., completely factored into primes ✔ ② ?

  16. What’s chance of random ✐ ( ♥ + ✐ ) being ② -smooth , i.e., completely factored into primes ✔ ② ? Consider, e.g., ② = ❜ ♥ 1 ❂ 10 ❝ . Uniform random integer in [1 ❀ ② 2 ] has ② -smoothness chance ✙ 0 ✿ 306; uniform random integer in [1 ❀ ♥ ] has chance ✙ 2 ✿ 77 ✁ 10 � 11 . Plausible conjecture: ② -smoothness chance of ✐ ( ♥ + ✐ ) is ✙ 8 ✿ 5 ✁ 10 � 12 . Find ✙ 8 ✿ 5 ✁ 10 � 12 ② 2 fully factored congruences.

  17. If ♥ ✕ 2 340 and ② = ❜ ♥ 1 ❂ 10 ❝ then 8 ✿ 5 ✁ 10 � 12 ② 2 ❃ 3 ②❂ log ② , and approximations seem fairly close, so conjecturally the Q sieve will find a square. Find many independent squares with negligible extra effort. If gcd turns out to be 1, try the next square. Conjecturally always works: splits odd ♥ into prime-power factors.

  18. How about ② ✙ ♥ 1 ❂✉ for larger ✉ ? Uniform random integer in [1 ❀ ♥ ] has ♥ 1 ❂✉ -smoothness chance roughly ✉ � ✉ . Plausible conjecture: Q sieve succeeds with ② = ❜ ♥ 1 ❂✉ ❝ for all ♥ ✕ ✉ (1+ ♦ (1)) ✉ 2 ; here ♦ (1) is as ✉ ✦ ✶ .

  19. How about letting ✉ grow with ♥ ? Given ♥ , try sequence of ② ’s in geometric progression until Q sieve works; e.g., increasing powers of 2. Plausible conjecture: final ② ✷ q� 1 ✁ exp 2 + ♦ (1) log ♥ log log ♥ , ♣ ✉ ✷ (2 + ♦ (1))log ♥❂ log log ♥ . Cost of Q sieve is a power of ② , hence subexponential in ♥ .

  20. More generally, if ② ✷ q� 1 ✁ exp 2 ❝ + ♦ (1) log ♥ log log ♥ , conjectured ② -smoothness chance is 1 ❂② ❝ + ♦ (1) . Find enough smooth congruences by changing the range of ✐ ’s: replace ② 2 with ② ❝ +1+ ♦ (1) = r✏ ( ❝ +1) 2 + ♦ (1) ✑ exp log ♥ log log ♥ . 2 ❝ Increasing ❝ past 1 increases number of ✐ ’s but reduces linear-algebra cost. So linear algebra never dominates when ② is chosen properly.

  21. Improving smoothness chances Smoothness chance of ✐ ( ♥ + ✐ ) degrades as ✐ grows. Smaller for ✐ ✙ ② 2 than for ✐ ✙ ② . Crude analysis: ✐ ( ♥ + ✐ ) grows. ✙ ②♥ if ✐ ✙ ② ; ✙ ② 2 ♥ if ✐ ✙ ② 2 . More careful analysis: ♥ + ✐ doesn’t degrade, but ✐ is always smooth for ✐ ✔ ② , only 30% chance for ✐ ✙ ② 2 . Can we select congruences to avoid this degradation?

  22. Choose q , square of large prime. Choose a “ q -sublattice” of ✐ ’s: arithmetic progression of ✐ ’s where q divides each ✐ ( ♥ + ✐ ). e.g. progression q � ( ♥ mod q ), 2 q � ( ♥ mod q ), 3 q � ( ♥ mod q ), etc. Check smoothness of generalized congruence ✐ ( ♥ + ✐ ) ❂q for ✐ ’s in this sublattice. e.g. check whether ✐❀ ( ♥ + ✐ ) ❂q are smooth for ✐ = q � ( ♥ mod q ) etc. Try many large q ’s. Rare for ✐ ’s to overlap.

  23. e.g. ♥ = 314159265358979323: Original Q sieve: ✐ ♥ + ✐ 1 314159265358979324 2 314159265358979325 3 314159265358979326 Use 997 2 -sublattice, ✐ ✷ 802458 + 994009 Z : ( ♥ + ✐ ) ❂ 997 2 ✐ 802458 316052737309 1796467 316052737310 2790476 316052737311

  24. Crude analysis: Sublattices eliminate the growth problem. Have practically unlimited supply of generalized congruences ( q � ( ♥ mod q )) ♥ + q � ( ♥ mod q ) q between 0 and ♥ . More careful analysis: Sublattices are even better than that! For q ✙ ♥ 1 ❂ 2 have ✐ ✙ ( ♥ + ✐ ) ❂q ✙ ♥ 1 ❂ 2 ✙ ② ✉❂ 2 so smoothness chance is roughly ( ✉❂ 2) � ✉❂ 2 ( ✉❂ 2) � ✉❂ 2 = 2 ✉ ❂✉ ✉ , 2 ✉ times larger than before.

  25. Even larger improvements from changing polynomial ✐ ( ♥ + ✐ ). “Quadratic sieve” (QS) uses ✐ 2 � ♥ with ✐ ✙ ♣ ♥ ; have ✐ 2 � ♥ ✙ ♥ 1 ❂ 2+ ♦ (1) , much smaller than ♥ . “MPQS” improves ♦ (1) using sublattices: ( ✐ 2 � ♥ ) ❂q . But still ✙ ♥ 1 ❂ 2 . “Number-field sieve” (NFS) achieves ♥ ♦ (1) .

  26. Generalizing beyond Q The Q sieve is a special case of the number-field sieve. Recall how the Q sieve factors 611: Form a square as product of ✐ ( ✐ + 611 ❥ ) for several pairs ( ✐❀ ❥ ): 14(625) ✁ 64(675) ✁ 75(686) = 4410000 2 . gcd ❢ 611 ❀ 14 ✁ 64 ✁ 75 � 4410000 ❣ = 47.

  27. ♣ The Q ( 14) sieve factors 611 as follows: Form a square ♣ as product of ( ✐ + 25 ❥ )( ✐ + 14 ❥ ) for several pairs ( ✐❀ ❥ ): ♣ ( � 11 + 3 ✁ 25)( � 11 + 3 14) ♣ ✁ (3 + 25)(3 + 14) ♣ 14) 2 . = (112 � 16 Compute s = ( � 11 + 3 ✁ 25) ✁ (3 + 25), t = 112 � 16 ✁ 25, gcd ❢ 611 ❀ s � t ❣ = 13.

  28. Why does this work? Answer: Have ring morphism ♣ ♣ Z [ 14] ✦ Z ❂ 611, 14 ✼✦ 25, since 25 2 = 14 in Z ❂ 611. Apply ring morphism to square: ( � 11 + 3 ✁ 25)( � 11 + 3 ✁ 25) ✁ (3 + 25)(3 + 25) = (112 � 16 ✁ 25) 2 in Z ❂ 611. i.e. s 2 = t 2 in Z ❂ 611. Unsurprising to find factor.

  29. � � � Diagram of ring morphisms: ♣ ♣ ♣ ① ✼✦ 14 � Q [ Q [ ① ] 14] = Q ( 14) ♣ ♣ ① ✼✦ 14 � Z [ Z [ ① ] 14] ♣ 14 ✼✦ 25 Z ❂ 611 Z [ ① ] uses poly arithmetic on ✐ 0 ① 0 + ✐ 1 ① 1 + ✁ ✁ ✁ : all ✐ ♠ ✷ Z ✟ ✠ ; ♣ Z [ 14] uses R arithmetic on ♣ ✟ ✠ ✐ 0 + ✐ 1 14 : ✐ 0 ❀ ✐ 1 ✷ Z ; Z ❂ 611 uses arithmetic mod 611 on ❢ 0 ❀ 1 ❀ ✿ ✿ ✿ ❀ 610 ❣ .

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend