Revise DRBG to split between internal and external flags.

One demand health check function.

Perform generation test in fips_test_suite.

Option to skip dh test if fips_test_suite.
This commit is contained in:
Dr. Stephen Henson
2011-09-21 17:04:56 +00:00
parent e74ac3f830
commit 4420b3b17a
10 changed files with 193 additions and 55 deletions

View File

@@ -182,7 +182,7 @@ static int drbg_hmac_generate(DRBG_CTX *dctx,
return 0;
if (!HMAC_Update(hctx, Vtmp, dctx->blocklength))
return 0;
if (!(dctx->flags & DRBG_FLAG_TEST) && !dctx->lb_valid)
if (!(dctx->xflags & DRBG_FLAG_TEST) && !dctx->lb_valid)
{
if (!HMAC_Final(hctx, dctx->lb, NULL))
return 0;