Hi,

My question is about the generation of g and p in the
'DH_generate_parameters' function:

It seems like this function works only the cases where g=2 or 5. Am I
right?

In other cases, there are few problems:
1.  After 'BN_generate_prime' is called, there is no check of whether g
is a generator of p-1.
2.  If g != 2,3 or 5, then t1=t2=0. In this case, this function performs
an illegal operation and crashes.

Another thing:
3. In the 'BN_generate_prime' function, If a==NULL, and the safe
parameter is set, the prime that is generated is not safe.

Thanks,

Liane
 

 Liane Lewin-Eytan
 Galileo Technology Ltd.
 E-mail - [EMAIL PROTECTED]
 Tel    - 972-4-6379222 ext. 1623
 
begin:vcard 
n:;
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
end:vcard

Reply via email to