| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 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"new:ETI"OpenSSL::PKey::DH::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"PEither generates a DH instance from scratch or by reading already existing ;TI"LDH parameters from +string+. Note that when reading a DH instance from ;TI"Ndata that was encoded from a DH instance by using DH#to_pem or DH#to_der ;TI"Pthe result will *not* contain a public/private key pair yet. This needs to ;TI"/be generated using DH#generate_key! first.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading:
leveli: textI"Parameters;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o;
; [I"w+size+ is an integer representing the desired key size. Keys smaller than 1024 bits should be considered insecure.;To;;0; [o;
; [I"9+generator+ is a small number > 1, typically 2 or 5.;To;;0; [o;
; [I"2+string+ contains the DER or PEM encoded key.;T@S;;
i;I"
Examples;To:RDoc::Markup::Verbatim; [I"DH.new # -> dh
;TI"DH.new(1024) # -> dh
;TI"DH.new(1024, 5) # -> dh
;TI"#Reading DH parameters
;TI"Udh = DH.new(File.read('parameters.pem')) # -> dh, but no public/private key yet
;TI"9dh.generate_key! # -> dh with public and private key;T:@format0:
@fileI"ext/openssl/ossl_pkey_dh.c;T:0@omit_headings_from_table_of_contents_below0I"HDH.new -> dh
DH.new(string) -> dh
DH.new(size [, generator]) -> dh
;T0[ I"(p1 = v1, p2 = v2);T@0FI"DH;TcRDoc::NormalClass00