D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
OpenSSL
/
PKey
/
DH
/
Filename :
public_key-i.ri
back
Copy
U:RDoc::AnyMethod[iI"public_key:ETI"!OpenSSL::PKey::DH#public_key;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DReturns a new DH instance that carries just the \DH parameters.;To:RDoc::Markup::BlankLine o; ; [I"GContrary to the method name, the returned DH object contains only ;TI"'parameters and not the public key.;T@o; ; [I"OThis method is provided for backwards compatibility. In most cases, there ;TI"$is no need to call this method.;T@o; ; [I"EFor the purpose of re-generating the key pair while keeping the ;TI"2parameters, check OpenSSL::PKey.generate_key.;T@o; ; [I" Example:;To:RDoc::Markup::Verbatim; [ I"I# OpenSSL::PKey::DH.generate by default generates a random key pair ;TI",dh1 = OpenSSL::PKey::DH.generate(2048) ;TI"2p dh1.priv_key #=> #<OpenSSL::BN 1288347...> ;TI"dhcopy = dh1.public_key ;TI"p dhcopy.priv_key #=> nil;T:@format0: @fileI"$ext/openssl/lib/openssl/pkey.rb;T:0@omit_headings_from_table_of_contents_below0I"dh.public_key -> dhnew ;T0[ I"();T@%FI"DH;TcRDoc::NormalClass00