Correct maximum request length. SP800-90 quotes maximum bits, not bytes.

This commit is contained in:
Dr. Stephen Henson 2011-08-19 23:25:10 +00:00
parent 6c01cbb6a0
commit 46883b67de
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;