diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-10-05 14:31:53 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-10-05 17:12:00 +0200 |
commit | b3ef6ccf1c8c867c2b7688f7fbc116baa764f2bd (patch) | |
tree | 67c829ca94e6b6ed29f1a21ff306319d946fe788 /lib/nettle | |
parent | 3d62be5cab0d57f7bdfb5ba583fb1fcd9699b479 (diff) | |
download | gnutls-b3ef6ccf1c8c867c2b7688f7fbc116baa764f2bd.tar.gz |
added text on _gnutls_dh_compute_key
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/pk.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) |