class Crypto::RSA::PublicKey

Direct Known Subclasses

Defined in:

crypto/pubkey/rsa/key.cr

Constructors

Class Method Summary

Instance Method Summary

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) #

[View source]

Class Method Detail

def self.load_pkcs1(key : String | Bytes, format : Crypto::Encoding::CertEncoding = :pem) #

[View source]

Instance Method Detail

def e : BigInt #
Description copied from class Crypto::RSA::Key

The RSA public or private exponent, a positive integer.


[View source]
def n : BigInt #
Description copied from class Crypto::RSA::Key

The RSA modulus, a positive integer.


[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]