Help on Diffie Hellman key exchange

Salz, Rich rsalz at
Wed Nov 13 17:11:43 UTC 2019

>    RAND_seed(seed, ::strlen(seed));
>    RAND_bytes(buf, keySize / 8);

I don’t know where you are getting the seed, but it is typically binary data, not a C string.

If you are using 1.1.0 or later, you do not need to seed things.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list