Revise DRBG to split between internal and external flags.
[openssl.git] / fips / rand / fips_drbg_hmac.c
index bf10609..3984782 100644 (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;
@@ -274,7 +274,7 @@ int fips_drbg_hmac_init(DRBG_CTX *dctx)
         dctx->max_pers = DRBG_MAX_LENGTH;
         dctx->max_adin = DRBG_MAX_LENGTH;
 
-        dctx->max_request = 1<<19;
+        dctx->max_request = 1<<16;
         dctx->reseed_interval = 1<<24;
 
        return 1;