]> git.ipfire.org Git - thirdparty/openssl.git/commit - crypto/rand/drbg_ctr.c
Make DRBG uninstantiate() and instantiate() methods inverse to each other
authorDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Mon, 20 Nov 2017 22:27:23 +0000 (23:27 +0100)
committerDr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Sun, 17 Dec 2017 22:12:10 +0000 (23:12 +0100)
commitefb8128ad56924736f50c01cde94b1716560aec7
tree5a6776a9e868c1ae03bc1710e5f4e8a822c752cf
parent933033b6928e9f01b99e7f2125f840bc052c5d96
Make DRBG uninstantiate() and instantiate() methods inverse to each other

Previously, the RAND_DRBG_uninstantiate() call was not exactly inverse to
RAND_DRBG_instantiate(), because some important member values of the
drbg->ctr member where cleared. Now these values are restored internally.

Signed-off-by: Dr. Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/4402)
crypto/rand/drbg_lib.c
crypto/rand/drbg_rand.c