dh.public_key â aDH
Instance Public methods
Returns a new DH instance that carries just the
public information, i.e. the prime p and the generator
g, but no public/private key yet. Such a pair may be generated
using #generate_key!. The
âpublic keyâ needed for a key exchange with #compute_key is considered as
per-session information and may be retrieved with DH#pub_key once a key
pair has been generated. If the current instance already contains private
information (and thus a valid