class Crypto::RSA::PrivateKey

Defined in:

crypto/pubkey/rsa/key.cr

Constructors

Instance Method Summary

Instance methods inherited from class Crypto::RSA::PublicKey

e : BigInt e, n : BigInt n, valid? : Bool valid?

Constructor methods inherited from class Crypto::RSA::PublicKey

new(n, e) new

Class methods inherited from class Crypto::RSA::PublicKey

load_pkcs1(key : String | Bytes, format : Crypto::Encoding::CertEncoding = :pem) load_pkcs1

Instance methods inherited from class Crypto::RSA::Key

e : BigInt e, n : BigInt n, to_a to_a, valid? : Bool valid?

Constructor Detail

def self.new(n, e, d, p, q) #

[View source]

Instance Method Detail

def coef : BigInt #

[View source]
def d : BigInt #

[View source]
def exp1 : BigInt #

[View source]
def exp2 : BigInt #

[View source]
def p : BigInt #

[View source]
def q : BigInt #

[View source]
def valid? : Bool #
Description copied from class Crypto::RSA::Key

Returns true if this is a valid RSA key according to PKCS1.


[View source]