From: Nikos Mavrogiannopoulos Date: Mon, 5 Oct 2015 12:31:53 +0000 (+0200) Subject: added text on _gnutls_dh_compute_key X-Git-Tag: gnutls_3_5_0~650 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3ef6ccf1c8c867c2b7688f7fbc116baa764f2bd;p=thirdparty%2Fgnutls.git added text on _gnutls_dh_compute_key --- diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 8b3cba6bf6..c7ef0d78c5 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -954,6 +954,8 @@ int _gnutls_dh_generate_key(gnutls_dh_params_t dh_params, return ret; } +/* Note that the value of Z will have the leading bytes stripped if they are zero - + * which follows the TLS approach. */ int _gnutls_dh_compute_key(gnutls_dh_params_t dh_params, const gnutls_datum_t *priv_key, const gnutls_datum_t *pub_key, const gnutls_datum_t *peer_key, gnutls_datum_t *Z)