X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/e557416818242c2e8b14ec03d321740fd83619e4..6e48c3fe152811248aad723336445e6e81ec3080:/sshdh.c diff --git a/sshdh.c b/sshdh.c index d556a252..84035c0a 100644 --- a/sshdh.c +++ b/sshdh.c @@ -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; }