spec/yubikey_ext_spec.rb in titanous-yubikey-1.0.1 vs spec/yubikey_ext_spec.rb in titanous-yubikey-1.0.2
- old
+ new
@@ -2,25 +2,9 @@
$:.unshift File.dirname(__FILE__) + '/../ext/yubikey_ext'
require 'yubikey_ext.so'
describe 'yubikey_ext' do
- it 'should decode modhex' do
- Yubikey::ModHex.decode('hknhfjbrjnlnldnhcujvddbikngjrtgh').should == "i\266H\034\213\253\242\266\016\217\"\027\233X\315V"
- Yubikey::ModHex.decode('urtubjtnuihvntcreeeecvbregfjibtn').should == "\354\336\030\333\347o\275\f33\017\0345Hq\333"
-
- Yubikey::ModHex.decode('dteffuje').should == "-4N\203"
-
- Yubikey::ModHex.decode('ifhgieif').should == 'test'
- Yubikey::ModHex.decode('hhhvhvhdhbid').should == 'foobar'
-
- Yubikey::ModHex.decode('cc').should == "\000"
- end
-
- it 'should raise if modhex string length uneven' do
- lambda { Yubikey::ModHex.decode('ifh') }.should raise_error(ArgumentError)
- end
-
it 'should decrypt aes' do
key = '72992427a3b8ccd20697493b5532561f'.to_bin
state = 'ddf43aec57366784e061a12f767e728a'.to_bin
plain = '619dd70df3b30300de1bdb00ffbf6f26'.to_bin
\ No newline at end of file