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.11.5 test/hexapdf/encryption/test_identity.rb
hexapdf-0.11.4 test/hexapdf/encryption/test_identity.rb
hexapdf-0.11.3 test/hexapdf/encryption/test_identity.rb
hexapdf-0.11.2 test/hexapdf/encryption/test_identity.rb
hexapdf-0.11.1 test/hexapdf/encryption/test_identity.rb
hexapdf-0.11.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.10.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.9.3 test/hexapdf/encryption/test_identity.rb
hexapdf-0.9.2 test/hexapdf/encryption/test_identity.rb
hexapdf-0.9.1 test/hexapdf/encryption/test_identity.rb
hexapdf-0.9.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.8.0 test/hexapdf/encryption/test_identity.rb
hexapdf-0.7.0 test/hexapdf/encryption/test_identity.rb