⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.189
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
OpenSSL
/
PKey
/
DH
/
View File Name :
new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"OpenSSL::PKey::DH::new;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"1Creates a new instance of OpenSSL::PKey::DH.;To:RDoc::Markup::BlankLine o; ; [I"QIf called without arguments, an empty instance without any parameter or key ;TI"Scomponents is created. Use #set_pqg to manually set the parameters afterwards ;TI"H(and optionally #set_key to set private and public key components).;T@o; ; [I"SIf a String is given, tries to parse it as a DER- or PEM- encoded parameters. ;TI"CSee also OpenSSL::PKey.read which can parse keys of any kinds.;T@o; ; [I"DThe DH.new(size [, generator]) form is an alias of DH.generate.;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" +string+;T; [o; ; [I"7A String that contains the DER or PEM encoded key.;To;;[I"+size+;T; [o; ; [I"See DH.generate.;To;;[I"+generator+;T; [o; ; [I"See DH.generate.;T@o; ; [I"Examples:;To:RDoc::Markup::Verbatim; [I")# Creating an instance from scratch ;TI"O# Note that this is deprecated and will not work on OpenSSL 3.0 or later. ;TI" dh = OpenSSL::PKey::DH.new ;TI"!dh.set_pqg(bn_p, nil, bn_g) ;TI" ;TI".# Generating a parameters and a key pair ;TI"Udh = OpenSSL::PKey::DH.new(2048) # An alias of OpenSSL::PKey::DH.generate(2048) ;TI" ;TI"# Reading DH parameters ;TI"\dh_params = OpenSSL::PKey::DH.new(File.read('parameters.pem')) # loads parameters only ;TI"Fdh = OpenSSL::PKey.generate_key(dh_params) # generates a key pair;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);T@BFI"DH;TcRDoc::NormalClass00