method

compute_key

v2_6_3 - Show latest stable - Class: OpenSSL::PKey::DH
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.

Parameters

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