1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 12:02:47 -05:00

Make the frankly ridiculous prototypes for modpow() and modmul() more sane

[originally from svn r752]
This commit is contained in:
Simon Tatham
2000-10-23 16:11:31 +00:00
parent bf2744aabf
commit e51b4da9f7
6 changed files with 33 additions and 34 deletions

View File

@ -99,8 +99,7 @@ Bignum dh_create_e(void) {
/*
* Done. Now compute e = g^x mod p.
*/
e = newbn(P[0]);
modpow(G, x, P, e);
e = modpow(G, x, P);
return e;
}
@ -110,6 +109,6 @@ Bignum dh_create_e(void) {
*/
Bignum dh_find_K(Bignum f) {
Bignum K = newbn(P[0]);
modpow(f, x, P, K);
K = modpow(f, x, P);
return K;
}