Method: Xmlenc::Algorithms::RsaOaepMgf1p#decrypt

Defined in:
lib/xmlenc/algorithms/rsa_oaep_mgf1p.rb

#decrypt(cipher_value, options = {}) ⇒ Object



10
11
12
13
# File 'lib/xmlenc/algorithms/rsa_oaep_mgf1p.rb', line 10

def decrypt(cipher_value, options = {})
  verify_algorithm(options[:node]) if options[:node]
  @key.private_decrypt(cipher_value, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING)
end