⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
OpenSSL
/
PKey
/
PKey
/
Edit File: sign-i.ri
U:RDoc::AnyMethod[iI" sign:ETI"OpenSSL::PKey::PKey#sign;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"OHashes and signs the +data+ using a message digest algorithm +digest+ and ;TI"a private key +pkey+.;To:RDoc::Markup::BlankLine o; ; [I"0See #verify for the verification operation.;T@o; ; [I"-See also the man page EVP_DigestSign(3).;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I" +digest+;T; [o; ; [ I"JA String that represents the message digest algorithm name, or +nil+ ;TI"4if the PKey type requires no digest algorithm. ;TI"NFor backwards compatibility, this can be an instance of OpenSSL::Digest. ;TI"-Its state will not affect the signature.;To;;[I"+data+;T; [o; ; [I"0A String. The data to be hashed and signed.;To;;[I"+options+;T; [o; ; [I"MA Hash that contains algorithm specific control operations to \OpenSSL. ;TI"BSee OpenSSL's man page EVP_PKEY_CTX_ctrl_str(3) for details. ;TI"2+options+ parameter was added in version 3.0.;T@o; ; [I" Example:;To:RDoc::Markup::Verbatim; [ I"data = "Sign me!" ;TI"Epkey = OpenSSL::PKey.generate_key("RSA", rsa_keygen_bits: 2048) ;TI",signopts = { rsa_padding_mode: "pss" } ;TI"5signature = pkey.sign("SHA256", data, signopts) ;TI" ;TI"N# Creates a copy of the RSA key pkey, but without the private components ;TI"pub_key = pkey.public_key ;TI"Gputs pub_key.verify("SHA256", signature, data, signopts) # => true;T:@format0: @fileI"ext/openssl/ossl_pkey.c;T:0@omit_headings_from_table_of_contents_below0I"3pkey.sign(digest, data [, options]) -> string ;T0[ I"(p1, p2, p3 = v3);T@?FI" PKey;TcRDoc::NormalClass00
Simpan