summaryrefslogtreecommitdiff
path: root/appl
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-02-05 11:09:14 +0000
committerforsyth <forsyth@vitanuova.com>2010-02-05 11:09:14 +0000
commitddf82ec9fc8ed2e0c2f64f8cf360b0f694cfeffb (patch)
tree667896cc087af4fbe7659f5fa86ef3819783071c /appl
parentaaab9bcca9a6fd14bd8496059b80b984906db6bc (diff)
20100205-1109
Diffstat (limited to 'appl')
-rw-r--r--appl/lib/secstore.b2
1 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);