Move randomness to allocated buffer
authorRich Salz <rsalz@openssl.org>
Tue, 22 Aug 2017 22:24:23 +0000 (18:24 -0400)
committerRich Salz <rsalz@openssl.org>
Wed, 23 Aug 2017 02:02:57 +0000 (22:02 -0400)
commit9d951a7872e5fa2b2a83fe8cfda3af5c52581172
tree3f54472c58a671e915f437d636bd5c759537bd11
parent27c6d63dad0844280b9db3c7e9ad8dd5befb51c3
Move randomness to allocated buffer

Don't keep it in the DRBG object, just allocate/free as needed.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/4226)
crypto/rand/drbg_lib.c
crypto/rand/rand_lib.c