instance method
OpenSSL::PKey::DH#params
() -> ::Hash[::String, ::OpenSSL::BN?]
dh.params → hash
ext/openssl/lib/openssl/pkey.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/ext/openssl/lib/openssl/pkey.rb, line 46
def params
%w{p q g pub_key priv_key}.map { |name|
[name, send(name)]
}.to_h
end
Stores all parameters of key to a Hash.
The hash has keys ‘p’, ‘q’, ‘g’, ‘pub_key’, and ‘priv_key’.