On Friday, March 25 at 12:46PM, ikuzar wrote: > Do you mean something like that: > > DH* dh; > dh = DH_new(); > > RAND_bytes(random_bytes, 256/8); > dh->priv_key = BN_bin2bn(random_bytes, 256/8, NULL); > DH_generate_key(dh); > > In this way, is dh->pub_key serialized ?
No. Please get familiar with the man pages. See for example http://www.openssl.org/docs/crypto/DH_generate_key.html http://www.openssl.org/docs/crypto/BN_bn2bin.html Greets, Frank.
pgpkx1MbnNDuu.pgp
Description: PGP signature