exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

twinkle.html

twinkle.html
Posted Dec 21, 1999

twinkle.html

tags | encryption
SHA-256 | ff9af70bda153bb31ea2263b311b1c80afbe18b075a29beee2c6bdd5b49fb4d7

twinkle.html

Change Mirror Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META NAME="Generator" CONTENT="NetObjects Fusion 4.0 for Windows">
<TITLE>RSA Labs - An Analysis of Shamir’s Factoring Device</TITLE>
</HEAD>
<BODY LINK="#003333" VLINK="#666666" TEXT="#000000" TOPMARGIN=16 LEFTMARGIN=10 MARGINWIDTH=10 MARGINHEIGHT=16>
<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=576>
<TR VALIGN=TOP ALIGN=LEFT>
<TD WIDTH=476><P ALIGN=LEFT><B><FONT COLOR="#000000" SIZE="+2" FACE="Arial Narrow,Helvetica Condensed,Univers57,Zurich Cn BT">An Analysis of Shamir's Factoring Device<BR></FONT>Robert D. Silverman<BR>RSA Laboratories<P
ALIGN=LEFT><FONT SIZE="-1">May 3, 1999</FONT></B><FONT SIZE="-1"><P><BR>At a Eurocrypt rump session, Professor Adi Shamir of the Weizmann Institute announced the design for an unusual piece of hardware. This hardware,
called "TWINKLE" (which stands for The Weizmann INstitute Key Locating Engine), is an electro-optical sieving device which will execute sieve-based factoring algorithms approximately two to three orders of magnitude as
fast as a conventional fast PC.&nbsp; The announcement only presented a rough design, and there a number of practical difficulties involved with fabricating the device.&nbsp; It runs at a very high clock rate (10 GHz),
must trigger LEDs at precise intervals of time, and uses wafer-scale technology.&nbsp; However, it is my opinion that the device is practical and could be built after some engineering effort is applied to it.&nbsp;
Shamir estimates that the device can be fabricated (after the design process is complete) for about $5,000.<P><BR><B>What is a sieve-based factoring algorithm?</B><P ALIGN=LEFT>
A sieve based algorithm attempts to construct a solution to the congruence A<SUP>2 </SUP>= B<SUP>2 </SUP> mod N,&nbsp; whence GCD(A-B,N) is a factor of N.&nbsp; It does so by <I>attempting </I>to factor many congruences
of the form&nbsp; C = D mod N,&nbsp; where there is some special relation between C and D.&nbsp; Each of C and D is attempted to be factored with a fixed set of prime numbers called a <I>factor base.&nbsp; </I>
This yields congruences of the form:<P ALIGN=JUSTIFY>
<CENTER><FONT FACE="Symbol" SIZE="-1">&Otilde;</FONT> (P<SUB>i</SUB><SUP>a</SUP>) = <FONT FACE="Symbol" SIZE="-1">&Otilde;</FONT> (p<SUB>i</SUB> <SUP>b</SUP>) mod N</CENTER>
<BR>where&nbsp; P<SUB>i</SUB>
are the primes in the factor base associated with C and&nbsp; p<SUB>i</SUB>
are the primes in the factor base associated with D. These factored congruences are found by sieving all the primes in the factor base over a long sieve interval.&nbsp;&nbsp; One collects many congruences of this form (as many as there are primes in the two factor bases) then finds a set of these congruences which when multiplied together yields squares on both sides. This set is found by solving a set of linear equations mod 2.&nbsp; Thus, there are two parts to a sieve-based algorithm: (1) collecting the equations by sieving, and (2) solving them.&nbsp; The number of equations equals the sum of the sizes of the factor bases.&nbsp; A variation allows somewhat larger primes in the factorizations than those in the factor bases.&nbsp; This has the effect of greatly speeding the sieving process, but makes the number of equations one needs to solve much larger. One could choose not to use the larger primes, but then one needs a much larger factor base, once again resulting in a larger matrix.
<P ALIGN=JUSTIFY>It should be noted that sieve based algorithms can also be used to solve discrete logarithm problems as well as factor.&nbsp; This applies to discrete logs over finite fields, but not to elliptic curve
discrete logs.&nbsp; Solving discrete logs takes about the same amount of time as factoring does for same-sized keys.&nbsp; However, the required space and time for the matrix is much larger for discrete logs. One must
solve the system of equations modulo the characteristic of the field, rather than mod 2.<P ALIGN=JUSTIFY><BR><B>What has been achieved so far with conventional hardware?</B><P ALIGN=LEFT>
Recently, a group led by Peter Montgomery announced the factorization of </FONT><A HREF="http://www.rsa.com/rsalabs/html/bulletins.html#10"><FONT SIZE="-1">RSA-140</FONT></A><FONT SIZE="-1">, a 465-bit number.&nbsp; The effort took about 200
computers, running in parallel, about 4 weeks to perform the sieving, then it took a large CRAY about 100 hours and 810 Mbytes of memory to solve the system of equations.&nbsp; The size of the factor bases used totaled
about 1.5 million primes resulting in a system of about 4.7 million equations that needed to be solved.<P ALIGN=JUSTIFY><BR><B>How long would RSA-140 take with TWINKLE</B>?<P ALIGN=JUSTIFY>Each device is capable of
accommodating a factor base of about 200,000 primes and a sieve interval of about 100 million. RSA-140 required a factor base of about 1.5 million, and the sieve interval is adequate, so about 7 devices would be
needed.&nbsp; One can use a somewhat smaller factor base, but a substantially smaller one would have the effect of greatly increasing the sieving time. This set of devices would be about 1000 times faster than a single
conventional computer, so the sieving could be done in about 6 days with 7 devices.&nbsp; The matrix would still take 4 days to solve, so the net effect would be to reduce the factorization time from about 33 days to 10
days, a factor of 3.3.&nbsp;&nbsp; This is an example of Amdahl's law which says that in a parallel algorithm the maximum amount of parallelism that can be achieved is limited by the serial parts of the algorithm. The
time to solve the matrix becomes a bottleneck.&nbsp; Even though the matrix solution for RSA-140 required only a tiny fraction of the total CPU hours, it represented a fair fraction of the total ELAPSED time: it took
about 15% of the elapsed time with conventional hardware for sieving. It would take about 40% of the elapsed time with devices. Note further that even if one could sieve <I>infinitely</I>
fast, the speedup obtained would only be a factor of 8 over what was actually achieved.<P ALIGN=JUSTIFY><BR><B>How long would a 512-bit modulus take with TWINKLE?</B> <P ALIGN=JUSTIFY>A 512-bit modulus would take 6 to
7 times as long for the sieving and 2 to 3 times the size of the factor bases as RSA-140.&nbsp; The size of the matrix to be solved grows correspondingly, and the time to solve it grows by a factor of about 8. Thus, 15
to 20 devices could do the sieving in about 5-6 weeks. Doubling the number will cut sieving time in half. The matrix would take another 4 weeks and about 2 Gbytes of memory to solve. The total time would be 9-10
weeks.&nbsp; With the same set of conventional hardware as was used for RSA-140, the sieving would take 6 to 7 months and the matrix solving resources would remain the same.&nbsp;&nbsp; <P ALIGN=JUSTIFY>Please note that
whereas with RSA-140, solving the matrix would take 40% of the elapsed time, with a 512-bit number it would take just a bit more.&nbsp; This problem will get worse as the size of the numbers being factored grows.<P
ALIGN=JUSTIFY><BR><B>How well will TWINKLE scale to larger numbers? </B><P ALIGN=JUSTIFY>A 768 bit number will take about 6000 times as long to sieve as a 512-bit number and will require a factor base which is about 80
times large.&nbsp; The length of the sieve interval would also increase by a factor of about 80. Thus, while about 1200 devicess could accommodate the factor base, they would have to be redesigned to accommodate a much
longer sieve interval. Such a set of machines would still take 6000 months to do the sieving.&nbsp; One can, of course, reduce this time by adding more hardware.&nbsp; The memory needed to hold the matrix would be about
64 Gbytes and would take about 24,000 times as long to solve. <P ALIGN=JUSTIFY>A 1024-bit number is the minimum size recommended today by a variety of standards (ANSI X9.31, X9.44,&nbsp; X9.30, X9.42).&nbsp; Such a
number would take 6 to 7 million times as long to do the sieving as a 512-bit number.&nbsp; The size of the factor base would grow by a factor of about 2500, and the length of the sieve interval would also grow by about
2500.&nbsp; Thus, while about 45,000 devices could accommodate the factor base, they would again have to be redesigned to accommodate much longer sieve intervals.&nbsp; Such a set&nbsp; would still take 6 to 7 million
months (500,000 years) to do the sieving.<P ALIGN=JUSTIFY>The memory required to hold the matrix would grow to 5 to 10 Terabytes and the disk storage to hold all the factored relations would be in the Petabyte
range.&nbsp; Solving the matrix would take "about" 65 million times as long as with RSA-512.&nbsp; These are rough estimates, of course, and can be off by an order of magnitude either way.&nbsp;&nbsp; </FONT><P
ALIGN=JUSTIFY>&nbsp;<P><B><FONT SIZE="-1">What are the prospects for using a smaller factor base?</FONT></B><FONT SIZE="-1"><P>The Number Field Sieve finds its successfully factored congruences by sieving over the
norms of two sets of integers.&nbsp; These norms are represented by polynomials.&nbsp; As the algorithm progresses, the coefficients of the polynomials become larger, and the rate at which one finds successful
congruences drops dramatically.&nbsp; Most of the successes come very early in the running of the algorithm. If one uses a sub-optimally sized factor base, the 'early' polynomials do not yield enough successes for the
algorithm to succeed at all. One can try sieving more polynomials, and with a faster sieve device this can readily be done. However, the yield rate can drop so dramatically that no additional amount of sieving can make
up for the too-small factor base.<P>The situation is different if one uses the Quadratic Sieve. For this algorithm all polynomials are 'equal', and one can use a sub-optimal factor base. However, for large numbers, QS
is much less efficient than NFS.&nbsp; At 512-bits, QS is about 4 times slower than NFS.&nbsp; Thus, to do 512-bit numbers with devices,&nbsp; QS should be the algorithm of choice, rather than NFS.&nbsp; However, for
1024-bit numbers,&nbsp; QS is slower than NFS by a factor of about 4.5 million. That's a lot. And the factor base will still be too large to manage, even for QS.<P><BR><B>
What are the prospects for speeding the matrix solution?</B><P ALIGN=JUSTIFY>Unlike the sieving phase, solving the matrix does not parallelize easily.&nbsp; The reason is that while the sieving units can run
independently, a parallel matrix solver would require the processors to communicate frequently and both bandwidth and communication latency would become a bottleneck.&nbsp; One could try reducing the size of the factor
bases, but too great a reduction would have the effect of <B><I>vastly</I></B> increasing the sieving time. Dealing with the problems of matrix storage and matrix solution time seems to require some completely new ideas.
<P ALIGN=JUSTIFY><BR><B>Key Size Comparison</B><P ALIGN=JUSTIFY>The table below gives, for different RSA key sizes, the amount of time required by the Number Field Sieve to break the key (expressed in total number of
arithmetic operations), the size of the required factor base, the amount of memory, per machine, to do the sieving, and the final matrix memory.<P ALIGN=JUSTIFY>The time column in the table below is useful for
comparison purposes. It would be difficult to give a meaningful elapsed time, since elapsed time depends on the number of machines available. Further, as the numbers grow, the devices would need to grow in size as well.
RSA-140 (465 bits) will take 6 days with 7 devices, plus the time to solve the matrix.&nbsp; This will require about 2.5 * 10<SUP>18</SUP>
arithmetic operations in total. A 1024-bit key will be 52 million times harder in time,&nbsp; and about 7200 times harder in terms of space. <P ALIGN=JUSTIFY>The data for numbers up to 512-bits may be taken as
accurate. The estimates for 768 bits and higher can easily be off by an order of magnitude.<BR>&nbsp;<P></FONT>
<TABLE ID="Table1" BORDER=1 CELLSPACING=1 CELLPADDING=1 WIDTH=476>
<TR>
<TD WIDTH=58 HEIGHT=27><P><B><FONT SIZE="-1">Keysize</FONT></B></TD>
<TD WIDTH=82><P><B><FONT SIZE="-1">Total Time</FONT></B></TD>
<TD WIDTH=82><P><B><FONT SIZE="-1">Factor Base</FONT></B></TD>
<TD WIDTH=103><P><B><FONT SIZE="-1">Sieve Memory</FONT></B></TD>
<TD WIDTH=123><P><B><FONT SIZE="-1">Matrix Memory</FONT></B></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=58><P><FONT SIZE="-1">428</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">5.5 * 10<SUP>17</SUP></FONT><SUP></SUP></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">600K</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=103><P ALIGN=LEFT><FONT SIZE="-1">24Mbytes</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=123><P ALIGN=LEFT><FONT SIZE="-1">128M</FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=58><P><FONT SIZE="-1">465</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">2.5 * 10<SUP>18</SUP></FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">1.2M</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=103><P ALIGN=LEFT><FONT SIZE="-1">64Mbytes</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=123><P ALIGN=LEFT><FONT SIZE="-1">825Mbytes</FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=58><P><FONT SIZE="-1">512</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">1.7 * 10<SUP>19</SUP></FONT><SUP></SUP></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">3M</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=103><P ALIGN=LEFT><FONT SIZE="-1">128Mbytes</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=123><P ALIGN=LEFT><FONT SIZE="-1">2 Gbytes</FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=58><P><FONT SIZE="-1">768</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">1.1 * 10<SUP>23</SUP></FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">240M</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=103><P ALIGN=LEFT><FONT SIZE="-1">10Gbytes</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=123><P ALIGN=LEFT><FONT SIZE="-1">160Gbytes</FONT></TD>
</TR>
<TR>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=58 HEIGHT=21><P><FONT SIZE="-1">1024</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">1.3 * 10<SUP>26</SUP></FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=82><P ALIGN=LEFT><FONT SIZE="-1">7.5G</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=103><P ALIGN=LEFT><FONT SIZE="-1">256Gbytes</FONT></TD>
<TD VALIGN=TOP ALIGN=LEFT WIDTH=123><P ALIGN=LEFT><FONT SIZE="-1">10Tbytes</FONT></TD>
</TR>
</TABLE>
<FONT SIZE="-1"><P ALIGN=JUSTIFY><BR><B>Conclusion</B><P>The idea presented by Dr. Shamir is a nice theoretical advance, but until it can be
implemented and the matrix difficulties resolved it will not be a threat to even 768-bit RSA keys, let alone 1024.<P><BR><B>References:</B><P ALIGN=LEFT>
(1) A.K. Lenstra & H.W. Lenstra (eds),&nbsp; The Development of the Number Field Sieve, Springer-Verlag Lecture Notes in Mathematics #1554<P ALIGN=LEFT>
(2) Robert D. Silverman,&nbsp; The Multiple Polynomial Quadratic Sieve,&nbsp; Mathematics of Computation, vol. 48, 1987, pp. 329-340<P>
(3) H. teRiele,&nbsp; Factorization of RSA-140,&nbsp; Internet announcement in sci.crypt and sci.math, 2/4/99<P ALIGN=JUSTIFY>
(4)&nbsp;&nbsp; R.M. Huizing,&nbsp;&nbsp; An Implementation of the Number Field Sieve,&nbsp;&nbsp; CWI Report NM-R9511,&nbsp; July 1995</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>

Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    63 Files
  • 14
    Nov 14th
    18 Files
  • 15
    Nov 15th
    8 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close