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
/
PKey
/
//opt/alt/ruby27/share/ri/system/OpenSSL/PKey/PKey/sign-i.ri
U:RDoc::AnyMethod[iI" sign:ETI"OpenSSL::PKey::PKey#sign;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"OTo sign the String _data_, _digest_, an instance of OpenSSL::Digest, must ;TI"Obe provided. The return value is again a String containing the signature. ;TI"0A PKeyError is raised should errors occur. ;TI"NAny previous state of the Digest instance is irrelevant to the signature ;TI"Koutcome, the digest instance is reset to its initial state during the ;TI"operation.;To:RDoc::Markup::BlankLine S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [ I"data = 'Sign me!' ;TI"*digest = OpenSSL::Digest::SHA256.new ;TI")pkey = OpenSSL::PKey::RSA.new(2048) ;TI"(signature = pkey.sign(digest, data);T:@format0: @fileI"ext/openssl/ossl_pkey.c;T:0@omit_headings_from_table_of_contents_below0I"'pkey.sign(digest, data) -> String ;T0[ I" (p1, p2);T@FI" PKey;TcRDoc::NormalClass00