Simplify BN_rand_range

This commit is contained in:
Bodo Möller
2001-02-10 00:34:20 +00:00
parent 7b0cb7f08d
commit 418a0d151e
5 changed files with 7 additions and 13 deletions

View File

@@ -180,7 +180,7 @@ static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
/* Get random k */
do
if (!BN_rand_range(&k, NULL, dsa->q)) goto err;
if (!BN_rand_range(&k, dsa->q)) goto err;
while (BN_is_zero(&k));
if ((dsa->method_mont_p == NULL) && (dsa->flags & DSA_FLAG_CACHE_MONT_P))