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-0.35.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.34.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.34.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.33.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.32.2 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.32.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.32.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.31.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.30.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.29.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.28.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.27.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.26.2 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.26.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.26.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.25.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.24.2 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.24.1 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.24.0 test/hexapdf/encryption/test_fast_aes.rb
hexapdf-0.23.0 test/hexapdf/encryption/test_fast_aes.rb