Factoring Integers by CVP and SVP Algorithms

Factoring Integers by CVP and SVP Algorithms

Factoring Integers by CVP and SVP Algorithms Claus Peter Schnorr Fachbereich Informatik und Mathematik, Goethe-Universit¨atFrankfurt, PSF 111932, D-60054 Frankfurt am Main, Germany. [email protected] work in progress 04.03.2020 Abstract. To factor an integer N we construct about n triples of pn-smooth integers u; v; ju − vNj 0 for the n-th prime pn. We find these triples from nearly shortest vectors of the lattice Ln;c whose basis [Bn;c; Nc] consists of the basis Bn;c of the prime number lattice of the first n primes and a t n+1 14 target vector Nc = (0; ::::0;N · ln N) 2 R representing N. We factor N ≈ 10 in 30 seconds 0 400 by an SVP algorithm for the lattice Ln;c, n=90. We extend these algorithms to N ≈ 2 and N ≈ 2800 replacing the SVP-algorithm by primal-dual reduction and use lattices of n = 191 and 383. These new algorithms factor integers N ≈ 2400 and N ≈ 2800 using 7 · 1010 and 4:3 · 1012 arithmetic operations, much faster then the quadratic sieve QS and the number field sieve NFS. Keywords. Prime number lattice, Primal-dual reduction. 1 Introduction and surview The enumeration algorithm Enum of [SE94, SH95] for short lattice vectors cuts stages by linear pruning. For New Enum we introduce the success rate βt of stages based on the Gaussian volume heuristic. New Enum first performs stages with high success rate and stores stages of smaller but still reasonable success rate for later performance. New Enum finds short vectors much faster than previous algorithms of Kannan [Ka87] and Fincke, Pohst [FP85] that disregard the success rate of stages. This greatly reduces the number of stages for finding a shortest/closest lattice vector. Section 4 presents time bounds of Enum under linear pruning for SVP for a lattice basis n×n B = [b1; :::; bn] 2 Z . Prop. 1 shows that Enum finds under linear pruning a shortest lattice vector b that behaves randomly (SA) under the volume heuristics in polynomial time if B satisfies GSA and rd(L) = o(n−1=4) holds for the relative density rd(L) of lattice L, see section 2. It follows n +1+o(1) that the maximal SVP-time of Enum under linear pruning for lattices of dim. n is n 8 . Cor. 3 translates Prop. 1 from SVP to CVP proving pol. time under similar conditions as Prop. 1 if kL − tk . λ1 holds for the target vector t. Sections 5, 6 study factoring algorithms first for N ≈ 1014 and then for N ≈ 2400 and N ≈ 2800 0 based on reduction algorithms for the lattice Ln;c with basis matrix [Bn;c; Nc]. The programs for 14 factoring N ≈ 10 are from master thesis of M.Charlet and A.Schickedanz and construct pn-smooth 0 400 800 integers u; v; ju − vNj by an SVP-algorithm for Ln;c. For N ≈ 2 and N ≈ 2 we primal-dual 800 reduce of the basis [Bn;c; Nc] using blocks of dimension 24. To factor N ≈ 2 we construct a vector b 2 L(Bn;c), b ∼ (u; v) with pn-smooth u; v and v ≤ pn such that ju − vNj is pn-smooth with probability 0.1286. We easily obtain from this (u; v) enough fac-relations to factor N. Integers N ≈ 2400 and N ≈ 2800 are factored by 7 · 1010 and 4:3 · 1012 arithmetic operations, much faster and using a much smaller prime basis than the quadratic sieve QS and the number field sieve NFS. 2 Lattices m×n Let B = [b1; :::; bn] 2 R be a basis matrix consisting of n linearly independent column vectors m n b1; :::; bn 2 R . They generate the lattice L(B) = fBx j x 2 Z g consisting of all integer linear t 1=2 combinations of b1; :::; bn. The dimension of L is n, the determinant of L is det L = (det B B) t m t 1=2 for any basis matrix B and the transpose B of B. The length of b 2 R is kbk = (b b) . Let λ1 = λ1(L) be the length of the shortest nonzero vector of L. The Hermite constant γn is 2 2=n the minimal γ such that λ1 ≤ γ(det L) holds for all lattices of dimension n. m×n n×n The basis matrix B has the unique QR factorisation B = QR 2 R , R = [ri;j ]1≤i;j≤n 2 R m×n where Q 2 R is isometric (with pairwise orthogonal column vectors of length 1) and R 2 n×n R is upper-triangular with positive diagonal entries ri;i. The QR-factorization provides the Gram-Schmidt coefficients µj;i = ri;j =ri;i which are rational for integer matrices B. The orthogonal ∗ ? ∗ projection bi of bi in span(b1; :::; bi−1) has length ri;i = kbi k, r1;1 = kb1k . 1 LLL-bases. A basis B = QR is LLL-reduced or an LLL-basis for δ 2 ( 4 ; 1] if 1 2 2 2 1. jri;j j=ri;i ≤ 2 for all j > i, 2. δri;i ≤ ri;i+1 + ri+1;i+1 for i = 1; :::; n − 1. 2 2 1 Obviously, LLL-bases satisfy ri;i ≤ α ri+1;i+1 for α := 1=(δ − 4 ). [LLL82] introduced LLL-bases focusing on δ = 3=4 and α = 2. A famous result of [LLL82] shows that LLL-bases for δ < 1 can be computed in polynomial time and that they nicely approximate the successive minima : n−1 −i+1 2 −2 n−1 2 2 2=n 3. α ≤ kbik λi ≤ α for i = 1; :::; n, 4. kb1k ≤ α (det L) . m×n 1 A basis B = QR 2 R is an HKZ-basis (Hermite, Korkine, Zolotareff) if jri;j j=ri;i ≤ 2 n×n for all j > i, and if each diagonal entry ri;i of R = [ri;j ] 2 R is minimal under all transforms of B to BT, T 2 GLn(Z) that preserve b1; :::; bi−1. m×n A basis B = QR 2 R , R = [ri;j ]1≤i;j≤n is a BKZ-basis for block size k, i.e., a BKZ-k basis if k×k the matrices [ri;j ]h≤i;j<h+k 2 R form HKZ-bases for h = 1; :::; n − k + 1, see [SE94]. The shortest vector problem (SVP): Given a basis of L find a shortest nonzero vector of L, i.e., a vector of length λ1. The closest vector problem (CVP): Given a basis of L and a target t 2 span(L) 0 0 find a closest vector b 2 L such that kt − b k = kt − Lk =def minf kt − bk j b 2 L g. −1=2 −1=n The efficiency of our algorithms depends on the lattice invariant rd(L) := λ1γn (det L) , thus 2 2 2 λ1 = rd(L) γn(det(L)) n which we call the relative density of L. Clearly 0 < rd(L) ≤ 1 holds for all L, and rd(L) = 1 if and only if L has maximal density. Lattices of maximal density and γn are known for n = 1; :::; 8 and n = 24. 3 Efficient enumeration of short lattice vectors We outline the SVP-algorithm based on the success rate of stages. New Enum improves the algorithm Enum of [SE94, SH95]. We recall Enum and present New Enum as a modification that essentially performs all stages of Enum in decreasing order of success rates. This SVP-algorithm New Enum finds a shortest lattice vector fast without enumerating all short lattice vectors. m×n n×n Let B = [b1; :::; bn] = QR 2 R , R = [ri;j ]1≤i;j≤n 2 R , be the given basis of L = L(B). Let ? ∗ ∗ πt : span(b1; :::; bn) ! span(b1; :::; bt−1) = span(bt ; :::; bn) for t = 1; :::; n denote the orthogonal projections and let Lt = L(b1; :::; bt−1). The success rate of stages. At stage u = (ut; :::; un) of ENUM for SVP of L a vector b = Pn 2 2 2 i=t uibi 2 L is given such that kπt(b)k ≤ λ1. (When λ1 is unknown we use instead some 2 Pn 2 2 A > λ1.) Stage u calls the substages (ut−1; :::; un) such that kπt−1( i=t−1 uibi)k ≤ λ1. We have Pn 2 Pt−1 2 2 k i=1 uibik = kζt + i=1 uibik + kπt(b)k , where ζt := b − πt(b) 2 span Lt is b's orthogonal projection in span Lt. Stage u and its substages enumerate the intersection Bt−1(ζt;%t) \Lt of the 2 2 1=2 sphere Bt−1(ζt;%t) ⊂ span Lt with radius %t := (λ1 − kπt(b)k ) and center ζt. The Gaussian volume heuristics estimates for t = 1; :::; n the expected size jBt−1(0;%t)\(ζt +Lt)j to be the success rate βt(u) =def vol Bt−1(0;%t) = det Lt (3.1) standing for the probability that there is an extension (u1; :::; un) of u = (ut; :::; un) such that n t−1 t−1 P t−1 2 t−1 2eπ 2 p k( i=1 uibi)k ≤ λ1. Here vol Bt−1(0;%t) = Vt−1%t , Vt−1 = π =( 2 )! ≈ ( t−1 ) = π(t − 1) is the volume of the unit sphere of dimension t−1 and det Lt = r1;1 ··· rt−1;t−1. If ζt 2 span Lt is uni- formly distributed the expected size of this intersection satisfies Eζt [# jBt−1(0;%t) \ (ζt + Lt) ] = βt(u).

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    18 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us