summaryrefslogtreecommitdiff
path: root/lib/gnutls_dh.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-12 14:05:41 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-27 11:41:43 +0100
commitad35a04fe47a97c41c51d2271b01f24be13217b1 (patch)
tree1d5fffca56b06749cc0848e082f494b8bb40b803 /lib/gnutls_dh.c
parent566898f627c295373f98d4b805248c8bb6d62d58 (diff)
downloadgnutls-ad35a04fe47a97c41c51d2271b01f24be13217b1.tar.gz
doc update
Diffstat (limited to 'lib/gnutls_dh.c')
-rw-r--r--lib/gnutls_dh.c4
1 files changed, 2 insertions, 2 deletions
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,