Skip to content

Commit

Permalink
not good to check that prng is non-NULL
Browse files Browse the repository at this point in the history
e.g. sprng() lives w/o context
  • Loading branch information
sjaeckel committed Jul 4, 2017
1 parent a0f2abc commit e647f9a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/pk/dh/dh_make_key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e647f9a

Please sign in to comment.