diff options
author | Azul <azul@leap.se> | 2012-07-26 11:33:29 +0200 |
---|---|---|
committer | Azul <azul@leap.se> | 2012-07-26 11:33:29 +0200 |
commit | 933df5e096e7dd9af1491b0679d588eb4254aaa1 (patch) | |
tree | 36d3b8cc3e2992fc394ad265b67468e4e53c43a1 /lib/srp/client.rb | |
parent | a88fa3560940f46ec1ff77f3e79d10d9bf34149a (diff) |
SRP::Authentication::Session holds the per session data
Diffstat (limited to 'lib/srp/client.rb')
-rw-r--r-- | lib/srp/client.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/srp/client.rb b/lib/srp/client.rb index 1be2461..667d5ba 100644 --- a/lib/srp/client.rb +++ b/lib/srp/client.rb @@ -19,10 +19,10 @@ module SRP x = calculate_x(username, password, salt) a = bigrand(32).hex aa = modpow(GENERATOR, a, PRIME_N) # A = g^a (mod N) - bb = server.initialize_auth(aa) - u = calculate_u(aa, bb, PRIME_N) - client_s = calculate_client_s(x, a, bb, u) - server.authenticate(calculate_m(aa,bb,client_s)) + session = server.initialize_auth(aa) + u = calculate_u(aa, session.bb, PRIME_N) + client_s = calculate_client_s(x, a, session.bb, u) + server.authenticate(calculate_m(aa,session.bb,client_s), session) end protected |