Sha256: 4b8f2ded23ed4058098e493138a9264374436a26e8c718a34daee9412ddd7667
Contents?: true
Size: 480 Bytes
Versions: 20
Compression:
Stored size: 480 Bytes
Contents
module Saml module Kit module Crypto class OaepCipher ALGORITHMS = { 'http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p' => true, } def initialize(algorithm, key) @key = key end def self.matches?(algorithm) ALGORITHMS[algorithm] end def decrypt(cipher_text) @key.private_decrypt(cipher_text, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems