提交 46883b67 编写于 作者: D Dr. Stephen Henson

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

上级 6c01cbb6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册