class OpenSSL::PKey::RSA

Defined in:

cherry/openssl/pkey/rsa.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class OpenSSL::PKey

finalize finalize, keyType : KeyType keyType, modulus_size modulus_size, pkey : LibCrypto::EVP_PKEY pkey, pkey=(pkey : LibCrypto::EVP_PKEY) pkey=, private_key? private_key?, public_key? public_key?, to_dsa to_dsa, to_rsa to_rsa, to_unsafe : LibCrypto::EVP_PKEY to_unsafe

Constructor methods inherited from class OpenSSL::PKey

new(pkey : LibCrypto::EVP_PKEY, keyType : OpenSSL::PKey::KeyType = KeyType::PublicKey)
new(keyType : OpenSSL::PKey::KeyType = KeyType::All)
new

Class methods inherited from class OpenSSL::PKey

parse_private_key(private_key : String, password = nil) parse_private_key, parse_public_key(public_key : String, password = nil) parse_public_key

Constructor Detail

def self.new(rsa : LibCrypto::RSA, keyType = KeyType::All) #

[View source]
def self.new(size : Int = 4096) #

[View source]

Class Method Detail

def self.generate(size : Int = 4096, exponent = 65537_u32) #

[View source]
def self.parse_private_key(private_key : String, password = nil) #

[View source]
def self.parse_public_key(public_key : String, password = nil) #

[View source]

Instance Method Detail

def finalize #

[View source]
def modulus_size #

[View source]
def private_key #

[View source]
def private_key! #

[View source]
def public_key #

[View source]
def public_key! #

[View source]
def to_io(io : IO, keyType : KeyType, cipher = nil, password = nil) #

[View source]
def to_io(io : IO, cipher = nil, password = nil) #

[View source]
def to_s(keyType : KeyType, cipher = nil, password = nil) #

[View source]
def to_s(cipher = nil, password = nil) #
Description copied from class Object

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.


[View source]
def to_unsafe : LibCrypto::RSA #

[View source]