diff options
| author | forsyth <forsyth@vitanuova.com> | 2010-02-05 11:09:14 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2010-02-05 11:09:14 +0000 |
| commit | ddf82ec9fc8ed2e0c2f64f8cf360b0f694cfeffb (patch) | |
| tree | 667896cc087af4fbe7659f5fa86ef3819783071c /appl/lib/secstore.b | |
| parent | aaab9bcca9a6fd14bd8496059b80b984906db6bc (diff) | |
20100205-1109
Diffstat (limited to 'appl/lib/secstore.b')
| -rw-r--r-- | appl/lib/secstore.b | 2 |
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); |
