提交 d9836039 编写于 作者: D Dr. Stephen Henson

Put quick DRBG selftest return after first generate operation.

上级 33987f2f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册