From 46883b67deeec2a6e4ed5ab374d101d27d9b8e21 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 19 Aug 2011 23:25:10 +0000 Subject: [PATCH] Correct maximum request length. SP800-90 quotes maximum bits, not bytes. --- fips/rand/fips_drbg_ctr.c | 2 +- fips/rand/fips_drbg_hash.c | 2 +- fips/rand/fips_drbg_hmac.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fips/rand/fips_drbg_ctr.c b/fips/rand/fips_drbg_ctr.c index a7f5b46753..47abec651d 100644 --- a/fips/rand/fips_drbg_ctr.c +++ b/fips/rand/fips_drbg_ctr.c @@ -429,7 +429,7 @@ int fips_drbg_ctr_init(DRBG_CTX *dctx) dctx->max_adin = dctx->seedlen; } - dctx->max_request = 1<<19; + dctx->max_request = 1<<16; dctx->reseed_interval = 1<<24; return 1; diff --git a/fips/rand/fips_drbg_hash.c b/fips/rand/fips_drbg_hash.c index 481b356ec6..07873ca02d 100644 --- a/fips/rand/fips_drbg_hash.c +++ b/fips/rand/fips_drbg_hash.c @@ -371,7 +371,7 @@ int fips_drbg_hash_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; diff --git a/fips/rand/fips_drbg_hmac.c b/fips/rand/fips_drbg_hmac.c index bf10609dee..7733386b92 100644 --- a/fips/rand/fips_drbg_hmac.c +++ b/fips/rand/fips_drbg_hmac.c @@ -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; -- 2.34.1