Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
OpenSSL
/
PKey
/
DSA
/
//opt/alt/ruby27/share/ri/system/OpenSSL/PKey/DSA/public_key-i.ri
U:RDoc::AnyMethod[iI"public_key:ETI""OpenSSL::PKey::DSA#public_key;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"NReturns a new DSA instance that carries just the public key information. ;TI"LIf the current instance has also private key information, this will no ;TI"Hlonger be present in the new instance. This feature is helpful for ;TI"Npublishing the public key information without leaking any of the private ;TI"information.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [I"Mdsa = OpenSSL::PKey::DSA.new(2048) # has public and private information ;TI"Cpub_key = dsa.public_key # has only the public part available ;TI"=pub_key_der = pub_key.to_der # it's safe to publish this;T:@format0: @fileI" ext/openssl/ossl_pkey_dsa.c;T:0@omit_headings_from_table_of_contents_below0I"dsa.public_key -> aDSA ;T0[ I"();T@FI"DSA;TcRDoc::NormalClass00