pike.git/
lib/
modules/
Crypto.pmod/
DH.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-05-09
2014-05-09 13:51:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>
cdba4c7e4bcdcacf5909b2fa9cedebcc9b4f48b7 (
3
lines) (+
2
/-
1
)
[
Show
|
Annotate
]
Branch:
8.0
Crypto.DH: Fixed some more warnings.
36:
array(Gmp.mpz) generate_keypair(function(int(0..):string(8bit)) rnd) { Gmp.mpz key = [object(Gmp.mpz)]
-
Gmp.mpz(rnd([int(0..)](q->size() / 8 + 16)), 256) % (q - 1) + 1;
+
(
Gmp.mpz(rnd([int(0..)](q->size() / 8 + 16)), 256) % (q - 1) + 1
)
;
Gmp.mpz pub = g->powm(key, p);