Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
ruby / usr / share / ri / 2.2.0 / system / OpenSSL / PKey / DH / cdesc-DH.ri
Size: Mime:
U:RDoc::NormalClass[iI"DH:EFI"OpenSSL::PKey::DH;FI"
cPKey;To:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"LAn implementation of the Diffie-Hellman key exchange protocol based on ;TI"Ldiscrete logarithms in finite fields, the same basis that DSA is built ;TI"on.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading:
leveli:	textI"7Accessor methods for the Diffie-Hellman parameters;To:RDoc::Markup::List:
@type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o;	;[I"	DH#p;To;	;[I"AThe prime (an OpenSSL::BN) of the Diffie-Hellman parameters.;To;;;;[o;;0;[o;	;[I"	DH#g;To;	;[I"GThe generator (an OpenSSL::BN) g of the Diffie-Hellman parameters.;To;;;;[o;;0;[o;	;[I"DH#pub_key;To;	;[I"KThe per-session public key (an OpenSSL::BN) matching the private key. ;TI"/This needs to be passed to DH#compute_key.;To;;;;[o;;0;[o;	;[I"DH#priv_key;To;	;[I"1The per-session private key, an OpenSSL::BN.;T@S;;i;
I"Example of a key exchange;To:RDoc::Markup::Verbatim;[
I"'dh1 = OpenSSL::PKey::DH.new(2048)
;TI"Xder = dh1.public_key.to_der #you may send this publicly to the participating party
;TI"&dh2 = OpenSSL::PKey::DH.new(der)
;TI":dh2.generate_key! #generate the per-session key pair
;TI".symm_key1 = dh1.compute_key(dh2.pub_key)
;TI".symm_key2 = dh2.compute_key(dh1.pub_key)
;TI"
;TI"*puts symm_key1 == symm_key2 # => true;T:@format0:
@fileI"ext/openssl/ossl_pkey_dh.c;T:0@omit_headings_from_table_of_contents_below0;0;0[[[[[I"
class;T[[:public[[I"
generate;TI"ext/openssl/ossl_pkey_dh.c;T[I"new;T@W[:protected[[:private[[I"
instance;T[[;[[I"compute_key;T@W[I"export;T@W[I"generate_key!;T@W[I"params;T@W[I"params_ok?;T@W[I"
private?;T@W[I"public?;T@W[I"public_key;T@W[I"to_der;T@W[I"to_pem;T@W[I"	to_s;T@W[I"to_text;T@W[;[[;[[[U:RDoc::Context::Section[i0o;;[;0;0[I"ext/openssl/ossl_pkey.c;TI"OpenSSL::PKey;FcRDoc::NormalModule