From cf4ffd762c05d5c1798d5ea464b4a164e1e2081f Mon Sep 17 00:00:00 2001 From: Quinn Slack Date: Tue, 19 Apr 2011 16:27:04 -0700 Subject: [PATCH] docs for makeVerifier --- core/srp.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/srp.js b/core/srp.js index 6b0dd24..68d76f4 100644 --- a/core/srp.js +++ b/core/srp.js @@ -8,6 +8,15 @@ * @class SRP */ sjcl.keyexchange.srp = { + /** + * Calculates SRP v, the verifier. + * v = g^x mod N [RFC 5054] + * @param {String} I The username. + * @param {String} P The password. + * @param {Object} s A bitArray of the salt. + * @param {Object} group The SRP group. Use sjcl.keyexchange.srp.knownGroup to obtain this object. + * @return {Object} A bitArray of SRP v. + */ makeVerifier: function(I, P, s, group) { var x; // From RFC 5054: