pike.git/
lib/
modules/
Crypto.pmod/
DSA.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-03-14
2016-03-14 16:15:06 by Martin Nilsson <nilsson@fastmail.com>
e6ceba2cc69457b7515cbe3830bc86e4efbe96e6 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
8.1
Use random_string instead of Crypto.Random.random_string
30:
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).
39:
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;