mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Correct maximum request length. SP800-90 quotes maximum bits, not bytes.
This commit is contained in:
parent
6c01cbb6a0
commit
46883b67de
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user