OpenSSL::PKey::RSA
Inherits OpenSSL::PKey < Reference < Object
Constructors
new(rsa : LibCrypto::RSA, keyType : KeyFlag = KeyFlag::ALL)
SourceClass methods
Instance methods
finalize
Sourcefree
Sourcefreed
SourcekeyType
Sourcemodulus_size
Sourcepkey
Sourceprivate_key!
Sourceprivate_key?
Sourcepublic_key!
Sourcepublic_key?
Sourcersa
Sourceto_s(key_flag : KeyFlag, cipher = nil, password = nil)
Sourceto_s(cipher = nil, password = nil)
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
to_unsafe
Source