method

set_key

ruby latest stable - Class: OpenSSL::PKey::DH
set_key(p1, p2)
public

Sets pub_key and priv_key for the DH instance. priv_key may be nil.