summaryrefslogtreecommitdiffstats
path: root/fips/rand/fips_drbg_hash.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-21 17:04:56 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-21 17:04:56 +0000
commit4420b3b17acf19f78f4fdea1a69d5f0a644c8154 (patch)
tree720d7c471443701477854133fb5fa2e76962a7c3 /fips/rand/fips_drbg_hash.c
parente74ac3f8307ba2a49b4ce5e6c56216b5a69531c2 (diff)
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.
Diffstat (limited to 'fips/rand/fips_drbg_hash.c')
-rw-r--r--fips/rand/fips_drbg_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fips/rand/fips_drbg_hash.c b/fips/rand/fips_drbg_hash.c
index 07873ca02d..4b3b723407 100644
--- a/fips/rand/fips_drbg_hash.c
+++ b/fips/rand/fips_drbg_hash.c
@@ -193,7 +193,7 @@ static int hash_gen(DRBG_CTX *dctx, unsigned char *out, size_t outlen)
{
FIPS_digestinit(&hctx->mctx, hctx->md);
FIPS_digestupdate(&hctx->mctx, hctx->vtmp, dctx->seedlen);
- if (!(dctx->flags & DRBG_FLAG_TEST) && !dctx->lb_valid)
+ if (!(dctx->xflags & DRBG_FLAG_TEST) && !dctx->lb_valid)
{
FIPS_digestfinal(&hctx->mctx, dctx->lb, NULL);
dctx->lb_valid = 1;