Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: harley@pauillac.inria.fr (Robert Harley)
Subject: Re: ECCp-79 challenge cracked
Date: 1997/12/08	[thread overview]
Message-ID: <66hulk$emp@news-rocq.inria.fr> (raw)


Matt Ettus <mne@andrew.cmu.edu> writes:
>Could you elaborate on the birthday paradox, and how it is used?

OK.

The aim is to find a discrete logarithm in a finite group.  In other
words, we're given two elements A and B of the group, we know that
there is some integer x such that A^x = B and we want to find the
value of x.  The size of the group is some prime integer, p.

One way to go about it is to pick random integers u and v and compute
C = A^u * B^v.  Doing this N times gives N random elements C_1, ...,
C_N.  As in the "birthday paradox" the number of pairs of elements
grows as N^2, so once N is roughly as big as the square root of p
there is a good chance for there to be two distinct indices i and j
such that:
  C_i = C_j

so that:
  A^{u_i} * B^{v_i} = A^{u_j} * B^{v_j}

so:
  A^{u_i-u_j} = B^{v_j-v_i}

so:
  x = (u_i-u_j)/(v_j-v_i)

where the division is done modulo p (assuming that v_i and v_j are
different modulo p, which will almost always be the case).


To avoid storing a large number of elements, we can use a random
function and do something analogous to Pollard's "rho" algorithm.

Let f be a random function that gives u_{i+1} and v_{i+1} (and hence
C_{i+1}) as a function of C_i.  We use M computers and on each one,
chose random u and v initially and then iterate f a large number of
times.  When any machine passes iteration i with i a multiple of r =
round(sqrt(p)/100), it distributes u_i, v_i and C_i to all the
machines.  Each machine keeps all the C's it has received in a sorted
table.  After every iteration it compares its C_i with those in the
table using binary search.

We expect that after O(sqrt(p)) total iterations, two identical C's
will have been found with different v's and after a further O(r)
iterations the match will be detected by a binary search and then we
can output x using the u'x and v's corresponding to the matching C's.


In the case just finished, the group is that of points on an elliptic
curve with coordinates in a finite field.  The size of p of the group
is about 4.66*10^23.  The code did about 300000 operations in the
group per second on a 500 Mhz Alpha and it took 1400*10^9 of them.
The entire run would have taken something like 7 weeks on one machine,
which is why it was advantageous to run it in parallel on 4 gigahertz
worth of Alphas!


>and congratulations on cracking the challenge

Merci!

-- Rob.



             reply	other threads:[~1997-12-08  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-12-08  5:00 Robert Harley [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-12-06  5:00 ECCp-79 challenge cracked Robert Harley
1997-12-07  5:00 ` Greg Lindahl
1997-12-08  5:00   ` Jason Shiffer
1997-12-08  5:00 ` Matt Ettus
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox