class

OpenSSL::PKey::RSA

Inherits OpenSSL::PKey::PKey < Reference < Object

Constructors

new(encoded : String, passphrase = nil)
Source
new(io : IO, passphrase = nil)
Source
new(size : Int32)
Source

Class methods

generate(size : Int32, exponent : UInt32)
Source

Instance methods

blinding_off!
Source
blinding_on!
Source
blinding_on?
Source
private_decrypt(data, padding = LibCrypto::Padding::PKCS1_PADDING)
Source
private_encrypt(data, padding = LibCrypto::Padding::PKCS1_PADDING)
Source
public_decrypt(data, padding = LibCrypto::Padding::PKCS1_PADDING)
Source
public_encrypt(data, padding = LibCrypto::Padding::PKCS1_PADDING)
Source
public_key
Source
sign_pss(digest : OpenSSL::Digest, data : String | Bytes) : Bytes

Sign data using RSA-PSS padding

Source
verify_pss(digest : OpenSSL::Digest, signature : Bytes, data : String | Bytes) : Bool

Verify signature using RSA-PSS padding

Source