Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/OpenSSL/PKey/DH/public_key-i.ri
Arrière
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
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages