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