docs for makeVerifier

This commit is contained in:
Quinn Slack 2011-04-19 16:27:04 -07:00
parent c085b773b7
commit cf4ffd762c
1 changed files with 9 additions and 0 deletions

View File

@ -8,6 +8,15 @@
* @class SRP * @class SRP
*/ */
sjcl.keyexchange.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) { makeVerifier: function(I, P, s, group) {
var x; var x;
// From RFC 5054: // From RFC 5054: