class Sandal::Enc::Alg::RSA1_5

The RSA1_5 key encryption algorithm.

Constants

NAME

The JWA name of the algorithm.

Public Class Methods

new(rsa_key) click to toggle source

Initialises a new instance.

@param rsa_key [OpenSSL::PKey::RSA or String] The RSA key to use for key encryption (public) or decryption (private). If the value is a String then it will be passed to the constructor of the RSA class. This must be at least 2048 bits to be compliant with the JWA specification.

Calls superclass method Sandal::Enc::Alg::RSA::new
# File lib/sandal/enc/alg/rsa.rb, line 57
def initialize(rsa_key)
  super(NAME, rsa_key, OpenSSL::PKey::RSA::PKCS1_PADDING)
end