Put quick DRBG selftest return after first generate operation.
This commit is contained in:
parent
33987f2f45
commit
d98360392a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user