ruby-srp 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/srp/session.rb +2 -1
- data/ruby-srp.gemspec +1 -1
- data/test/session_test.rb +3 -1
- metadata +3 -3
data/lib/srp/session.rb
CHANGED
data/ruby-srp.gemspec
CHANGED
data/test/session_test.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/test_helper')
|
2
|
+
require 'json'
|
2
3
|
|
3
4
|
class SessionTest < Test::Unit::TestCase
|
4
5
|
|
@@ -21,7 +22,8 @@ class SessionTest < Test::Unit::TestCase
|
|
21
22
|
session = SRP::Session.new(self, aa)
|
22
23
|
session.send(:initialize_server, aa, b) # seeding b to compare to py_srp
|
23
24
|
assert_equal bb.to_s(16), session.bb.to_s(16)
|
24
|
-
assert_equal
|
25
|
+
assert_equal self, session.authenticate(m)
|
26
|
+
assert_equal({'M2' => m2.to_s(16)}.to_json, session.to_json)
|
25
27
|
end
|
26
28
|
|
27
29
|
def test_zero_padded_salt
|
metadata
CHANGED