compute_key(p1) public

Returns a String containing a shared secret computed from the other party’s public value. See DH_compute_key() for further information.


  • pub_bn is a OpenSSL::BN, not the DH instance returned by DH#public_key as that contains the DH parameters only.

Show source
Register or log in to add new notes.