diff options
Diffstat (limited to 'javascript/srp.js')
-rw-r--r-- | javascript/srp.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/javascript/srp.js b/javascript/srp.js index 7021bfa..9aa47b9 100644 --- a/javascript/srp.js +++ b/javascript/srp.js @@ -28,6 +28,16 @@ function SRP() // *** Accessor methods *** + // allows setting the random number A for testing + + this.calculateAndSetA = function(_a) + { + a = new BigInteger(_a, 16); + A = g.modPow(a, N); + Astr = A.toString(16); + return Astr; + }; + // Returns the user's identity this.getI = function() { |