Sha256: 333115db01ed0c6ed5011c525fb6c4366e2a3b39e8d34cc35dcf29f5bd7d1e77

Contents?: true

Size: 305 Bytes

Versions: 26

Compression:

Stored size: 305 Bytes

Contents

module Xmlenc
  module Algorithms
    class RSA15
      def initialize(key)
        @key = key
      end

      def decrypt(cipher_value, options = {})
        @key.private_decrypt(cipher_value)
      end

      def encrypt(data, option = {})
        @key.public_encrypt(data)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
xmlenc-0.8.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.7.1 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.7.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.9 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.8 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.6 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.5 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.4 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.3 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.2 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.1 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.6.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.5.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.4.1 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.4.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.3.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.2.1 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.2.0 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.1.7 lib/xmlenc/algorithms/rsa_15.rb
xmlenc-0.1.6 lib/xmlenc/algorithms/rsa_15.rb