| Server IP : 162.214.74.102 / Your IP : 216.73.217.46 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenSSL/PKey/DH/ |
Upload File : |
U:RDoc::AnyMethod[iI"public_key:ETI"!OpenSSL::PKey::DH#public_key;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"NReturns a new DH instance that carries just the public information, i.e. ;TI"Nthe prime +p+ and the generator +g+, but no public/private key yet. Such ;TI"Ma pair may be generated using DH#generate_key!. The "public key" needed ;TI"Ifor a key exchange with DH#compute_key is considered as per-session ;TI"Jinformation and may be retrieved with DH#pub_key once a key pair has ;TI"been generated. ;TI"NIf the current instance already contains private information (and thus a ;TI"Pvalid public/private key pair), this information will no longer be present ;TI"Qin the new instance generated by DH#public_key. This feature is helpful for ;TI"Qpublishing the Diffie-Hellman parameters without leaking any of the private ;TI"per-session information.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [I"Gdh = OpenSSL::PKey::DH.new(2048) # has public and private key set ;TI"Dpublic_key = dh.public_key # contains only prime and generator ;TI"?parameters = public_key.to_der # it's safe to publish this;T:@format0: @fileI"ext/openssl/ossl_pkey_dh.c;T:0@omit_headings_from_table_of_contents_below0I"dh.public_key -> aDH ;T0[ I"();T@ FI"DH;TcRDoc::NormalClass00