From: Nikos Mavrogiannopoulos Date: Mon, 27 Jan 2014 12:09:32 +0000 (+0100) Subject: corrected usage of privkey X-Git-Tag: gnutls_3_3_0pre0~254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0220f0b4e0a1dbca63e47208cf4d3ce9a1001bec;p=thirdparty%2Fgnutls.git corrected usage of privkey --- diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index ef01d5fcc4..ed0960f4c1 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -928,7 +928,7 @@ wrap_nettle_pk_generate_keys(gnutls_pk_algorithm_t algo, } mpz_set(TOMPZ(params->params[DSA_Y]), pub.y); - mpz_set(TOMPZ(params->params[DSA_X]), pub.x); + mpz_set(TOMPZ(params->params[DSA_X]), priv.x); params->params_nr += 2; dsa_fail: