Re: El Gamal modulus question

From: Thomas Pornin (pornin_at_nerim.net)
Date: 02/02/04


Date: Mon, 2 Feb 2004 08:18:24 +0000 (UTC)

According to Peter Fairbrother <zenadsl6186@zen.co.uk>:
> Is there a reason why you can't use a generator of order p-1 * instead of
> order q?
>
> Why do you need a large prime q to divide p-1?

There are some attacks on discrete log which retrieve the exponent
modulo small factors of p-1. For such a factor f, the attack works in
O(sqrt(f)). If you use a group whose order is a multiple of q, big prime
such that O(sqrt(q)) is big, then you are safe -- and you know it (as
far as practical security is concerned, knowing that you are safe is at
least as important than being effectively safe).

This also means that if f is a small factor of p-1, and you work
with a generator of order p-1, then, knowing g^x mod p, you can
compute x modulo f. This leaks some data on x. In a typical El-Gamal
encryption, that's not a problem: x has been chosen randomly with a
uniform probability. But, in some more complex protocols, this can be
troublesome. Hence having g of order exactly q is good.

> (and aren't we abusing the word generator here? I thought it meant an
> element whose powers generated the entire set of residues. Or at least it
> did when I learned group theory)

"g" is the generator for the subgroup of Z(p-1)* on which computations
are performed. It needs not be a generator for the whole Z(p-1)* group.

        --Thomas Pornin



Relevant Pages

  • Re: Big Prime number prolem.
    ... it is insufficient to generate random primes ... p-1, it is impossible to determine if g, the generator does in fact ... full factorization of p-1 via their construction. ...
    (sci.crypt)
  • Re: An non primitive root works for Diffie -Hellman?
    ... What you want for Diffie-Hellman is a generator of a large prime order ... group, NOT a primitive root, as it is a generator of the group of size p-1, ... and p-1 is clearly not prime as it is even. ... Another idea is a "lim-lee" prime, where all the prime divisors of p-1 are ...
    (sci.crypt)
  • Re: Problems With Public Key Cryptosystems
    ... Of the form that p-1 should not have certain ... >small prime divisors. ... >couldn't be sure that what seems safe today will be so tomorrow. ... seem to have been an artifact of the old factoring algorithms. ...
    (sci.math)
  • Re: Problems With Public Key Cryptosystems
    ... Of the form that p-1 should not have certain ... >small prime divisors. ... >couldn't be sure that what seems safe today will be so tomorrow. ... seem to have been an artifact of the old factoring algorithms. ...
    (sci.crypt)
  • Re: Generator of a group
    ... >I search the generator of the group of quadratic residues for a prime p ... >value and it's hard to find the factorization for such a big ... the factors of p-1, and I have a strong feeling ... Greg Rose ...
    (sci.crypt)

Quantcast