Hello,
I am using DH_new(), DH_generate_key(), DH_compute_key() to calculate the shared DH key for a pre-determined safe prime "P" and "g". P & g are copied into the DH structure by BN_hex2bn() functions. When I execute the code, I get this warning (?) printf saying "the g value is not a generator" from DH_check(). I am using a generator of 2.
But it still falls through the rest of the code and calculates the public key and the secret key. My code is based on dhtest.c.
Is this message of any importance?
Not really, the order of 2 is still q (where P = 2 * q + 1)
Would the keys generated be valid with this message?
yes (of course that depends on how you define 'valid')
Nils
PS: Please post your question either to [EMAIL PROTECTED] or
[EMAIL PROTECTED] but not to both !______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
