]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
added text on _gnutls_dh_compute_key
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 5 Oct 2015 12:31:53 +0000 (14:31 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 5 Oct 2015 15:12:00 +0000 (17:12 +0200)
lib/nettle/pk.c

index 8b3cba6bf6444ff29c3095fc66afeb2ff333cef7..c7ef0d78c59e577fb35f399bcfd9fb0b0f0aa008 100644 (file)
@@ -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)