diff --git a/core/srp.js b/core/srp.js index 417cd5ed..814f3245 100644 --- a/core/srp.js +++ b/core/srp.js @@ -8,13 +8,13 @@ * @class SRP */ sjcl.keyexchange.srp = { - makeVerifier: function(I, P, s, N, g) { + makeVerifier: function(I, P, s, group) { var x; // From RFC 5054: // v = g^x mod N x = this.makeX(I, P, s); x = sjcl.bn.fromBits(x); - return g.powermod(x, N); + return group.g.powermod(x, group.N); }, makeX: function(I, P, s) { diff --git a/test/srp_test.js b/test/srp_test.js index d5219e72..8a40b871 100644 --- a/test/srp_test.js +++ b/test/srp_test.js @@ -5,17 +5,16 @@ new sjcl.test.TestCase("SRP known-answer (RFC 5054) tests", function (cb) { return; } - var i, kat = sjcl.test.vector.srp, tv, N, g, v, x; + var i, kat = sjcl.test.vector.srp, tv, group, v, x; for (i=0; i