From e647f9a0e4242408b2dc3a02a65f1b6024cade9d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 4 Jul 2017 10:20:56 +0200 Subject: [PATCH] not good to check that prng is non-NULL e.g. sprng() lives w/o context --- src/pk/dh/dh_make_key.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pk/dh/dh_make_key.c b/src/pk/dh/dh_make_key.c index 549a244..f2f81ff 100644 --- a/src/pk/dh/dh_make_key.c +++ b/src/pk/dh/dh_make_key.c @@ -50,7 +50,6 @@ int dh_make_key(prng_state *prng, int wprng, dh_key *key) LTC_ARGCHK(key != NULL); LTC_ARGCHK(ltc_mp.name != NULL); - LTC_ARGCHK(prng != NULL); /* good prng? */ if ((err = prng_is_valid(wprng)) != CRYPT_OK) {