Hi,
I tried a sample code to implement Diffie- helman key exchange ,
out of curiosity i checked the variables inside the DH object (dh->g,
dh->p) after calling DH_generate_parameters_ex
the code snippet is given below.
DH* dh = DH_new();
int prime_len= 128;
int generator = 2;
int dh_error;
if(!dh || !DH_generate_parameters_ex(dh, prime_len, generator, NULL) )
{//err
}
on printing the value of dh->g was 1064305904 !!
g is supposed to hold the value 2 (int generator = 2;) right??
or am I in a wrong lane?
please let me know your comments
-Satzok
--
View this message in context:
http://old.nabble.com/DH-object-and-its-g-value-tp32225165p32225165.html
Sent from the OpenSSL - User mailing list archive at Nabble.com.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]