diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-02-26 19:20:16 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2017-03-06 22:24:33 +0100 |
commit | cc6876289ec927350c39e562bd5b0c1f090d5149 (patch) | |
tree | 03718c1603928ec2fea0a86c02d751b27291ddc7 | |
parent | 04db12cc378e3973ac6da8095e622acbb0dbea82 (diff) | |
download | gnutls-cc6876289ec927350c39e562bd5b0c1f090d5149.tar.gz |
nettle/pk: use the GNUTLS_RND_RANDOM level for DH/DSA params
This are not long term keys and do not require the key level.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
-rw-r--r-- | lib/nettle/pk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/pk.c b/lib/nettle/pk.c index 552d144129..6b0dbd5f1d 100644 --- a/lib/nettle/pk.c +++ b/lib/nettle/pk.c @@ -875,7 +875,7 @@ wrap_nettle_pk_generate_params(gnutls_pk_algorithm_t algo, } else { ret = dsa_generate_dss_pqg(&pub, &cert, - index, NULL, rnd_key_func, + index, NULL, rnd_tmpkey_func, NULL, NULL, level, q_bits); } if (ret != 1 || HAVE_LIB_ERROR()) { @@ -900,7 +900,7 @@ wrap_nettle_pk_generate_params(gnutls_pk_algorithm_t algo, if (q_bits < 160) q_bits = 160; - ret = dsa_generate_params(&pub, NULL, rnd_key_func, + ret = dsa_generate_params(&pub, NULL, rnd_tmpkey_func, NULL, NULL, level, q_bits); if (ret != 1 || HAVE_LIB_ERROR()) { gnutls_assert(); |