summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appl/lib/secstore.b2
-rw-r--r--dis/lib/secstore.disbin8354 -> 8361 bytes
2 files changed, 1 insertions, 1 deletions
diff --git a/appl/lib/secstore.b b/appl/lib/secstore.b
index f848d8c6..f6cb1b15 100644
--- a/appl/lib/secstore.b
+++ b/appl/lib/secstore.b
@@ -410,7 +410,7 @@ PAKclient(conn: ref Dial->Connection, C: string, pwhash: array of byte): string
(hexHi, H, nil) := PAK_Hi(C, pwhash);
# random 1<=x<=q-1; send C, m=g**x H
- x := mod(IPint.random(240), pak.q);
+ x := mod(IPint.random(240, 240), pak.q);
if(x.eq(IPint.inttoip(0)))
x = IPint.inttoip(1);
m := mod(pak.g.expmod(x, pak.p).mul(H), pak.p);
diff --git a/dis/lib/secstore.dis b/dis/lib/secstore.dis
index 51aa76b6..1a76220c 100644
--- a/dis/lib/secstore.dis
+++ b/dis/lib/secstore.dis
Binary files differ