Sha256: 2eafb7973a3b92414c6fc1dff99e65a61f00a73d4109d3a1bfbe0dfe67fda880

Contents?: true

Size: 561 Bytes

Versions: 100

Compression:

Stored size: 561 Bytes

Contents

# -*- encoding: utf-8 -*-

require_relative 'common'
require 'hexapdf/encryption/ruby_arc4'
require 'hexapdf/encryption/fast_arc4'

describe HexaPDF::Encryption::RubyARC4 do
  include ARC4EncryptionTests

  before do
    @algorithm_class = HexaPDF::Encryption::RubyARC4
  end

  it "is compatible with the OpenSSL based FastARC4 implementation" do
    @keys.each_with_index do |key, i|
      assert_equal(@plain[i], HexaPDF::Encryption::FastARC4.new(key).
                   process(HexaPDF::Encryption::RubyARC4.new(key).process(@plain[i])))
    end
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
hexapdf-1.2.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.1.1 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.1.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.0.3 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.0.2 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.0.1 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-1.0.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.47.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.46.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.45.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.44.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.41.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.40.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.39.1 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.39.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.38.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.37.2 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.37.1 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.37.0 test/hexapdf/encryption/test_ruby_arc4.rb
hexapdf-0.36.0 test/hexapdf/encryption/test_ruby_arc4.rb