U:RDoc::AnyMethod[iI"generate_key!:ETI"$OpenSSL::PKey::DH#generate_key!;TF: publico:RDoc::Markup::Document: @parts[ o:RDoc::Markup::Paragraph; [ I"MGenerates a private and public key unless a private key already exists. ;TI"JIf this DH instance was generated from public DH parameters (e.g. by ;TI"Iencoding the result of DH#public_key), then this method needs to be ;TI"Ncalled first in order to generate the per-session keys before performing ;TI"the actual key exchange.;To:RDoc::Markup::BlankLineS:RDoc::Markup::Heading: leveli: textI" Example;To:RDoc::Markup::Verbatim; [ I"&dh = OpenSSL::PKey::DH.new(2048) ;TI"Dpublic_key = dh.public_key #contains no private/public key yet ;TI"public_key.generate_key! ;TI"'puts public_key.private? # => true;T: @format0: @fileI"ext/openssl/ossl_pkey_dh.c;T:0@omit_headings_from_table_of_contents_below0I"dh.generate_key! -> self ;T0[I"();T@FI"DH;TcRDoc::NormalClass00