abstract class Crypto::RSA::Key

Overview

Represents a RSA private or public key.

Direct Known Subclasses

Defined in:

crypto/pubkey/rsa/key.cr

Instance Method Summary

Instance Method Detail

abstract def e : BigInt #

The RSA public or private exponent, a positive integer.


[View source]
abstract def n : BigInt #

The RSA modulus, a positive integer.


[View source]
def to_a #

Returns a two-element array containing the modulus and exponent.


[View source]
abstract def valid? : Bool #

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


[View source]