> From: owner-openssl-us...@openssl.org On Behalf Of Dirk Menstermann > Sent: Wednesday, 10 March, 2010 10:57
> when I generate DH parameters with: > > int bits = 1024; > DH *params = DH_generate_parameters (bits, DH_GENERATOR_5, > NULL, NULL); > > Can I then later read the value of the bits parameter from > the DH struct? > DH_size() gives you the number of BYTES for the modulus (and thus group elements like priv&pubkey values). If it was a multiple of 8 to start with, as it was in this example and usually is, bytes*8 = bits. If (possibly) not, BH_num_bits(dh->p) gives the exact bits. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org