summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-10-25 12:01:11 +1000
committerPauli <pauli@openssl.org>2021-10-26 20:03:37 +1000
commitf7bbebf831fd071ce8c4d1bbd8f02a4877456033 (patch)
tree309ae6acbd73e916a799a07810b52ac477bcc312 /doc
parent5b945f08c9878651312d193b431e057aacbadd13 (diff)
test-rand: return failure on not enough data, allow parent
The test-rand RNG was returning success when it had some but insufficient data. Now, it returns failure and doesn't advance the data pointer. The test-rand RNG was failing when a parent was specified. This case is now ignored. Fixes #16785 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16905) (cherry picked from commit d4dfd983e32b32b633aaa9edec422cc30419c6f7)
Diffstat (limited to 'doc')
-rw-r--r--doc/man7/EVP_RAND-TEST-RAND.pod5
1 files changed, 2 insertions, 3 deletions
diff --git a/doc/man7/EVP_RAND-TEST-RAND.pod b/doc/man7/EVP_RAND-TEST-RAND.pod
index 56e9d755e3..a70015345b 100644
--- a/doc/man7/EVP_RAND-TEST-RAND.pod
+++ b/doc/man7/EVP_RAND-TEST-RAND.pod
@@ -52,9 +52,8 @@ they can all be set as well as read.
=item "test_entropy" (B<OSSL_RAND_PARAM_TEST_ENTROPY>) <octet string>
Sets the bytes returned when the test generator is sent an entropy request.
-When entropy is requested, these bytes are treated as a cyclic buffer and they
-are repeated as required. The current position is remembered across generate
-calls.
+The current position is remembered across generate calls.
+If there are insufficient data present to satisfy a call, an error is returned.
=item "test_nonce" (B<OSSL_RAND_PARAM_TEST_NONCE>) <octet string>