[openssl-commits] [openssl] OpenSSL_1_1_1-stable update
Dr. Paul Dale
pauli at openssl.org
Fri Feb 8 06:15:16 UTC 2019
The branch OpenSSL_1_1_1-stable has been updated
via ee774d5d3cb38455e8c9d4d73612bf6eebdfa335 (commit)
from eaacc2475044b624a7b3b1ecd9ebe5953a6ff45d (commit)
- Log -----------------------------------------------------------------
commit ee774d5d3cb38455e8c9d4d73612bf6eebdfa335
Author: Pauli <paul.dale at oracle.com>
Date: Fri Dec 21 12:03:19 2018 +1000
Address a bug in the DRBG tests where the reseeding wasn't properly
reinstantiating the DRBG.
Bug reported by Doug Gibbons.
Reviewed-by: Paul Yang <yang.yang at baishancloud.com>
(Merged from https://github.com/openssl/openssl/pull/8184)
(cherry picked from commit b1522fa5ef676b7af0128eab3eee608af3416182)
-----------------------------------------------------------------------
Summary of changes:
test/drbgtest.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/drbgtest.c b/test/drbgtest.c
index 67fc1aa..23556fd 100644
--- a/test/drbgtest.c
+++ b/test/drbgtest.c
@@ -420,7 +420,7 @@ static int error_check(DRBG_SELFTEST_DATA *td)
*/
/* Test explicit reseed with too large additional input */
- if (!init(drbg, td, &t)
+ if (!instantiate(drbg, td, &t)
|| RAND_DRBG_reseed(drbg, td->adin, drbg->max_adinlen + 1, 0) > 0)
goto err;
@@ -431,7 +431,7 @@ static int error_check(DRBG_SELFTEST_DATA *td)
goto err;
/* Test explicit reseed with too much entropy */
- if (!init(drbg, td, &t))
+ if (!instantiate(drbg, td, &t))
goto err;
t.entropylen = drbg->max_entropylen + 1;
if (!TEST_int_le(RAND_DRBG_reseed(drbg, td->adin, td->adinlen, 0), 0)
@@ -439,7 +439,7 @@ static int error_check(DRBG_SELFTEST_DATA *td)
goto err;
/* Test explicit reseed with too little entropy */
- if (!init(drbg, td, &t))
+ if (!instantiate(drbg, td, &t))
goto err;
t.entropylen = drbg->min_entropylen - 1;
if (!TEST_int_le(RAND_DRBG_reseed(drbg, td->adin, td->adinlen, 0), 0)
More information about the openssl-commits
mailing list