From ad35a04fe47a97c41c51d2271b01f24be13217b1 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 12 Nov 2013 14:05:41 +0100 Subject: doc update --- lib/gnutls_dh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gnutls_dh.c') diff --git a/lib/gnutls_dh.c b/lib/gnutls_dh.c index 5bbb0a6ced..be41bb08ef 100644 --- a/lib/gnutls_dh.c +++ b/lib/gnutls_dh.c @@ -34,7 +34,7 @@ his_key = X ^ y mod p; // generate our secret and the public value (X) for it - X = gnutls_calc_dh_secret(&x, g, p); + gnutls_calc_dh_secret(&Y, &X, g, p); // now we can calculate the shared secret key = gnutls_calc_dh_key(Y, x, g, p); _gnutls_mpi_release(x); @@ -43,7 +43,7 @@ #define MAX_BITS 18000 -/* returns the public value (X), and the secret (ret_x). +/* returns the public value (Y), and the secret (X). */ int gnutls_calc_dh_secret(bigint_t * ret_y, bigint_t * ret_x, bigint_t g, -- cgit v1.2.1