Sha256: d1c963c9f696e417c22172d39766aa802e2194b51ad7577ca5f7ce2d6dad2bcd

Contents?: true

Size: 570 Bytes

Versions: 93

Compression:

Stored size: 570 Bytes

Contents

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

require_relative 'common'
require 'hexapdf/encryption/identity'

describe HexaPDF::Encryption::Identity do
  include EncryptionAlgorithmInterfaceTests

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

  it "returns the data unmodified for encrypt/decrypt" do
    assert_equal('data', @algorithm_class.encrypt('key', 'data'))
  end

  it "returns the source Fiber unmodified for encryption_fiber/decryption_fiber" do
    f = Fiber.new { 'data' }
    assert_equal(f, @algorithm_class.encryption_fiber('key', f))
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

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