Start to overhaul RAND API
authorRich Salz <rsalz@openssl.org>
Thu, 22 Jun 2017 13:21:43 +0000 (09:21 -0400)
committerRich Salz <rsalz@openssl.org>
Sat, 15 Jul 2017 05:51:34 +0000 (01:51 -0400)
commitda8fc25a989cf4f4d26d626a85477e8a9282da12
tree428bd385034d2a3a24d13cb0e8fa3ee37f06f6b7
parent71d57be52e7c4d5389dfe950ad9ee4e54aea5411
Start to overhaul RAND API

Remove unused rand_hw_xor, MD/EVP indirection
Make rand_pseudo same as rand.
Cleanup formatting and ifdef control
Rename some things:
    - rand_meth to openssl_rand_meth; make it global
    - source file
    - lock/init functions, start per-thread state
    - ossl_meth_init to ossl_rand_init
Put state into RAND_STATE structure
And put OSSL_RAND_STATE into ossl_typ.h
Use "randomness" instead of "entropy"

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3758)
crypto/rand/build.info
crypto/rand/ossl_rand.c [moved from crypto/rand/md_rand.c with 65% similarity]
crypto/rand/rand_lcl.h
crypto/rand/rand_lib.c
crypto/rand/rand_unix.c
crypto/rand/rand_vms.c