instance method
OpenSSL::PKey::RSA#params
() -> ::Hash[::String, ::OpenSSL::BN?]
rsa.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 363
def params
%w{n e d p q dmp1 dmq1 iqmp}.map { |name|
[name, send(name)]
}.to_h
end
Stores all parameters of key to a Hash.
The hash has keys ‘n’, ‘e’, ‘d’, ‘p’, ‘q’, ‘dmp1’, ‘dmq1’, and ‘iqmp’.