Skip to content
instance method

OpenSSL::PKey::EC#dh_compute_key

(::OpenSSL::PKey::EC::Point public_key) -> ::String
ec.dh_compute_key(pubkey) → string

Derives a shared secret by ECDH. pubkey must be an instance of OpenSSL::PKey::EC::Point and must belong to the same group.

This method is provided for backwards compatibility, and calls derive internally.

See also #check_key #dsa_sign_asn1 .new #dsa_verify_asn1 also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0