From: Carlo Arenas Date: Wed, 17 Nov 2021 00:47:48 GMT Subject: Re: [PATCH 1/2] wrapper: add a helper to generate numbers from a CSPRNG Message-ID: In-Reply-To: <00e001d7db40$985c61a0$c91524e0$@nexbridge.com> On Tue, Nov 16, 2021 at 4:01 PM wrote: > > We do link with libcurl and use OpenSSL as a DLL to handle TLS. The underlying random source for the nonstop-* configurations as of OpenSSL 3.0 are PNRG supplied by the vendor (HPE) on ia64 and the hardware rdrand* instructions on x86. I know that part of the OpenSSL code rather intimately. Older versions of OpenSSL exported (AFAIK) a usable version of arc4random_buf() that could have helped here; it seems to still be there in libressl[1] which is mostly API compatible and might be worth looking into IMHO even if as you pointed out will need an implementation similar to what OpenSSL does internally. [1] https://cvsweb.openbsd.org/src/lib/libcrypto/arc4random/