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-0.22.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.21.1 test/hexapdf/encryption/test_identity.rb
hexapdf-0.21.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.20.4 test/hexapdf/encryption/test_identity.rb
hexapdf-0.20.3 test/hexapdf/encryption/test_identity.rb
hexapdf-0.20.2 test/hexapdf/encryption/test_identity.rb
hexapdf-0.20.1 test/hexapdf/encryption/test_identity.rb
hexapdf-0.20.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.19.3 test/hexapdf/encryption/test_identity.rb
hexapdf-0.19.2 test/hexapdf/encryption/test_identity.rb
hexapdf-0.19.1 test/hexapdf/encryption/test_identity.rb
hexapdf-0.19.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.18.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.17.3 test/hexapdf/encryption/test_identity.rb
hexapdf-0.17.2 test/hexapdf/encryption/test_identity.rb
hexapdf-0.16.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.15.9 test/hexapdf/encryption/test_identity.rb
hexapdf-0.15.8 test/hexapdf/encryption/test_identity.rb
hexapdf-0.15.7 test/hexapdf/encryption/test_identity.rb
hexapdf-0.15.6 test/hexapdf/encryption/test_identity.rb