pike.git
/
lib
/
modules
/
Crypto.pmod
/
DSA.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Crypto.pmod/DSA.pmod:23:
// --- Variables and accessors // protected Gmp.mpz p; // Modulo protected Gmp.mpz q; // Group order protected Gmp.mpz g; // Generator protected Gmp.mpz y; // Public key protected Gmp.mpz x; // Private key
-
protected function(int(0..):string(8bit)) random =
.Random.
random_string;
+
protected function(int(0..):string(8bit)) random = random_string;
Gmp.mpz get_p() { return p; } //! Returns the DSA modulo (p). Gmp.mpz get_q() { return q; } //! Returns the DSA group order (q). Gmp.mpz get_g() { return g; } //! Returns the DSA generator (g). Gmp.mpz get_y() { return y; } //! Returns the DSA public key (y). Gmp.mpz get_x() { return x; } //! Returns the DSA private key (x). //! Sets the random function, used to generate keys and parameters, to
-
//! the function @[r]. Default is @[
Crypto.Random.
random_string].
+
//! the function @[r]. Default is @[random_string].
this_program set_random(function(int(0..):string(8bit)) r) { random = r; return this; } //! Returns the string @expr{"DSA"@}. string(8bit) name() { return "DSA"; } //