diff options
author | Azul <azul@riseup.net> | 2013-07-12 12:10:29 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2013-07-12 12:18:10 +0200 |
commit | 90611d3d29bc1b290e98f2fcd50a5d70de70a111 (patch) | |
tree | 9345a9205b917cd6444ee2e134c340b004928652 /src/srp_calculate.js | |
parent | 933567499fa4c46e42d45de6066064559cfded09 (diff) |
prefix incoming B too
Diffstat (limited to 'src/srp_calculate.js')
-rw-r--r-- | src/srp_calculate.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/srp_calculate.js b/src/srp_calculate.js index 9196e0c..a1cbe51 100644 --- a/src/srp_calculate.js +++ b/src/srp_calculate.js @@ -73,10 +73,13 @@ srp.Calculate = function() { // some 16 byte random number this.randomSalt = function() { - salt = new BigInteger(64, rng); + var salt = new BigInteger(64, rng); return zeroPrefix(salt.toString(16)); } + // expose zeroPrefix for received values. + this.zeroPrefix = zeroPrefix; + function hex2a(hex) { var str = ''; if(hex.length % 2) { |