Class: Sandal::Enc::Alg::RSA_OAEP
Overview
The RSA-OAEP key encryption algorithm.
Constant Summary collapse
- NAME =
The JWA name of the algorithm.
"RSA-OAEP"
Instance Attribute Summary
Attributes inherited from RSA
Instance Method Summary collapse
-
#initialize(rsa_key) ⇒ RSA_OAEP
constructor
Initialises a new instance.
Methods inherited from RSA
Constructor Details
#initialize(rsa_key) ⇒ RSA_OAEP
Initialises a new instance.
(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.
74 75 76 |
# File 'lib/sandal/enc/alg/rsa.rb', line 74 def initialize(rsa_key) super(NAME, rsa_key, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING) end |