diff options
author | Azul <azul@riseup.net> | 2012-10-04 10:32:39 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2012-10-04 10:32:39 +0200 |
commit | c73f7c1b4c1270d4d0ca47650a12893a6d13e796 (patch) | |
tree | 91f3ff3bfddc1abb62c3628833faf0f64d0c55e8 /lib/srp/util.rb | |
parent | b889ef34d4fff0d156901ae2aebfcee02339ce77 (diff) |
simplifying modpow to default to BIG_PRIME_N
Diffstat (limited to 'lib/srp/util.rb')
-rw-r--r-- | lib/srp/util.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/srp/util.rb b/lib/srp/util.rb index fcbab31..087ce5d 100644 --- a/lib/srp/util.rb +++ b/lib/srp/util.rb @@ -20,7 +20,7 @@ d15dc7d7b46154d6b6ce8ef4ad69b15d4982559b297bcf1885c529f566660e5 GENERATOR = 2 # g # a^n (mod m) - def modpow(a, n, m) + def modpow(a, n, m = BIG_PRIME_N) r = 1 while true r = r * a % m if n[0] == 1 |