Sha256: a8e98be698421ae9e41bcf6bb574690827af2d6d2b58810a8fbcbdba4915cc36

Contents?: true

Size: 451 Bytes

Versions: 100

Compression:

Stored size: 451 Bytes

Contents

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

require_relative 'common'
require 'hexapdf/encryption/fast_aes'

describe HexaPDF::Encryption::FastAES do
  include AESEncryptionTests

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

  it "uses a better random bytes generator" do
    assert_equal(@algorithm_class.singleton_class, @algorithm_class.method(:random_bytes).owner)
    assert_equal(16, @algorithm_class.random_bytes(16).length)
  end
end

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
hexapdf-0.11.6 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.5 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.4 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.3 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.2 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.11.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.10.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.9.3 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.9.2 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.9.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.9.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.8.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.7.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.6.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.5.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.4.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.3.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.2.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.1.0 test/hexapdf/encryption/test_fast_aes.rb