Sha256: a8e98be698421ae9e41bcf6bb574690827af2d6d2b58810a8fbcbdba4915cc36

Contents?: true

Size: 451 Bytes

Versions: 99

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

99 entries across 99 versions & 1 rubygems

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