提交 7c226dfc 编写于 作者: S Shane Lontis 提交者: Pauli

Fixed issue where DRBG_CTR fails if NO_DF is used - when entropy is called

Reviewed-by: NPaul Dale <paul.dale@oracle.com>
Reviewed-by: NTim Hudson <tjh@openssl.org>
Reviewed-by: NKurt Roeckx <kurt@roeckx.be>
Reviewed-by: NMatthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/6778)
上级 037241bf
......@@ -174,7 +174,7 @@ size_t rand_drbg_get_entropy(RAND_DRBG *drbg,
if (RAND_DRBG_generate(drbg->parent,
buffer, bytes_needed,
prediction_resistance,
(unsigned char *)drbg, sizeof(*drbg)) != 0)
NULL, 0) != 0)
bytes = bytes_needed;
rand_drbg_unlock(drbg->parent);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册