summaryrefslogtreecommitdiff
path: root/src/srp_session.js
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2013-03-20 12:49:34 +0100
committerAzul <azul@riseup.net>2013-03-20 12:49:34 +0100
commit3f37e98acca731e9272848dea77b7a64a5ed7615 (patch)
treed4e00bc93916f7e9eaffca56c116832a8b1142ca /src/srp_session.js
parentfff770a866b44abce6fe0fc5d5ffde034225436d (diff)
use a proper random a for the handshake
Diffstat (limited to 'src/srp_session.js')
-rw-r--r--src/srp_session.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/srp_session.js b/src/srp_session.js
index 3f27e3e..b1b6014 100644
--- a/src/srp_session.js
+++ b/src/srp_session.js
@@ -7,8 +7,7 @@ srp.Session = function(login, password) {
var k = new BigInteger("bf66c44a428916cad64aa7c679f3fd897ad4c375e9bbb4cbf2f5de241d618ef0", 16);
var rng = new SecureRandom();
-// var a = new BigInteger(32, rng);
- var a = new BigInteger("d498c3d024ec17689b5320e33fc349a3f3f91320384155b3043fa410c90eab71", 16);
+ var a = new BigInteger(32, rng);
var A = g.modPow(a, N);
while(A.mod(N) == 0)
{