Put quick DRBG selftest return after first generate operation.

This commit is contained in:
Dr. Stephen Henson 2011-09-07 10:26:38 +00:00
parent 33987f2f45
commit d98360392a

View File

@ -226,6 +226,12 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td,
goto err2;
}
if (quick)
{
rv = 1;
goto err;
}
t.ent = td->entreseed;
t.entlen = td->entreseedlen;
@ -283,12 +289,6 @@ static int fips_drbg_single_kat(DRBG_CTX *dctx, DRBG_SELFTEST_DATA *td,
goto err2;
}
if (quick)
{
rv = 1;
goto err;
}
t.ent = td->entg_pr;
t.entlen = td->entglen_pr;