Branch: Tag:

2014-05-09

2014-05-09 12:47:08 by Martin Nilsson <nilsson@opera.com>

#pragma strict_types

1: + #pike __REAL_VERSION__ + #pragma strict_types +  +    //!   //! Diffie-Hellman key-exchange related stuff.   //!
90:    protected variant void create(Gmp.mpz|int p, Gmp.mpz|int|void g,    Gmp.mpz|int|void q)    { -  this_program::p = p; -  this_program::g = g || Gmp.mpz(2); -  this_program::q = q || (p-1)/2; +  this_program::p = Gmp.mpz(p); +  this_program::g = g && Gmp.mpz(g) || Gmp.mpz(2); +  this_program::q = q && Gmp.mpz(q) || Gmp.mpz( [int](p-1)/2 );    }   }