Re: general question how to choose parameters
From: Johanna Bernstein (johanna.bernstein_nospam_at_yahoo.com)
Date: 07/19/05
- Next message: Tom St Denis: "Re: LFSR functions are still used in MACs?"
- Previous message: Gregory G Rose: "Re: general question how to choose parameters"
- In reply to: Gregory G Rose: "Re: general question how to choose parameters"
- Next in thread: David Wagner: "Re: general question how to choose parameters"
- Reply: David Wagner: "Re: general question how to choose parameters"
- Reply: gupta.d.pub_at_gmail.com: "Re: general question how to choose parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 19 Jul 2005 13:22:57 +0200
Hello,
> You could do this, but there are potential attacks
> with the discrete-log systems in general if you
> do. These are often called "small subgroup
> attacks". Basically, the multiplicative group mod
> P will have many subgroups, of the order of the
> prime powers of P-1; if the attacker can choose
> (or get you to choose) a parameter such that you
> get stuck in one of the small subgroups, he might
> be able to break the system. So the countermeasure
What do you mean with "a parameter"?
For example, look the following 2 examples:
1.) ElGamal: Let g be a generator of the multiplicative group Z_p^* and
p a large prime. To encrypt a plaintext m \in Z_p I can then do the
following:
C=(g^r,y^r*m), where y =g^s mod p is the public key.
I found this definition of elgamal in the handbook of applied
cryptography, so I suppose it's correct.
2.) Pedersen-Commitment: g is an element of order q (q|p-1) in Z_p^* and
h is an element generated by g. Then I can commit to a value m in
calculating:
g^{m}*h^r mod p.
So what is now the difference of the both cases? Why can't I just choose
in 2.) like in the ElGamal-case g as a generator of Z_p^*? Why it has
to be an element of order q? If an attack is possible in 2.) why then
the attack isn't possible in 1.), cause if I could calculate the
discrete log of g^r then surely I could break the ElGamal scheme.
Btw. a somehow unrelated question to the above: Why can't I just commit
to a value m in calculating g^m mod p (g is a generator of Z_p^*)? Why
do I have to multiply by h^r?
> is to do all the calculations in a subgroup that
> is large enough for security; then the only
> failure cases are easy to check for (like the
> answer will be 1...). Otherwise you'd need to
> check that the order of all intermediate results
> was still large enough for security.
So is it an efficiency reason? Is this loss in efficiency very problematic?
- Next message: Tom St Denis: "Re: LFSR functions are still used in MACs?"
- Previous message: Gregory G Rose: "Re: general question how to choose parameters"
- In reply to: Gregory G Rose: "Re: general question how to choose parameters"
- Next in thread: David Wagner: "Re: general question how to choose parameters"
- Reply: David Wagner: "Re: general question how to choose parameters"
- Reply: gupta.d.pub_at_gmail.com: "Re: general question how to choose parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|