mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
5340d11165
Implement a test random number generator (RNG) using the TEST-RAND [1] generator provided by OpenSSL. This allows writing tests for OpenSSL functionality where OpenSSL internally uses RNGs, e.g. used for ML-KEM. The implementation uses RAND_set0_public [2] to set the thread-local RNG, which requires OpenSSL >= 3.1. [1] https://docs.openssl.org/3.0/man7/EVP_RAND-TEST-RAND/ [2] https://docs.openssl.org/3.1/man3/RAND_set0_public Assisted-by: IBM Bob:1.0.5 Acked-by: Steffen Eiden <seiden@linux.ibm.com> Acked-by: Timo Keller <tkeller@linux.ibm.com> Signed-off-by: Marc Hartmayer <marc@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
17 KiB
17 KiB