Branch: Tag:

2014-05-09

2014-05-09 13:51:46 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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);