Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 8469516d1b
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (21 sloc) 0.596 kB
$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../ext/#{RUBY_PLATFORM}"
describe 'FastAES' do
before :all do
puts "building extension..."
# Build our extension each time
Dir.chdir("#{File.dirname(__FILE__)}/../ext") do
system "ruby extconf.rb"
system "make clean"
system "make"
system "make install RUBYARCHDIR=#{RUBY_PLATFORM}"
end
require 'fast_aes'
end
it "should accept 128, 192, and 256-bit keys" do
[128, 192, 256].each do |bits|
key = 'a' * (bits/8)
aes = FastAES.new(key)
aes.key.should == key
end
end
end
Jump to Line
Something went wrong with that request. Please try again.