[openssl-dev] Work on a new RNG for OpenSSL
John Denker
ssx at av8n.com
Mon Jun 26 20:18:58 UTC 2017
On 06/26/2017 12:41 PM, Salz, Rich wrote:
> Suppose the chip supports RDRAND but the runtime doesn't have
> getrandom or /dev/random?
That's an easy one!
Check the feature-test bit and then call RDRAND yourself.
Code to do this exists, e.g.
https://en.wikipedia.org/wiki/RdRand#Sample_x86_asm_code_to_check_upon_RDRAND_instruction
A version of that for 64-bit architecture exists somewhere, too.
More information about the openssl-dev
mailing list