Fix DRBG reseed counter condition.
authorVitezslav Cizek <vcizek@suse.com>
Mon, 1 Jun 2020 09:45:09 +0000 (11:45 +0200)
committerDr. Matthias St. Pierre <matthias.st.pierre@ncp-e.com>
Wed, 22 Jul 2020 23:12:48 +0000 (01:12 +0200)
commit9fb6692c1b129fa61277ae0482975a935274c6fd
treecd42c67ccab0f75e0ab4f661bfba43a1ecd43351
parent11a6d6fd706d1fa095122d65d3076fb38f2c739c
Fix DRBG reseed counter condition.

The reseed counter condition was broken since a93ba40, where the
initial value was wrongly changed from one to zero.
Commit 8bf3665 fixed the initialization, but also adjusted the check,
so the problem remained.
This change restores original (OpenSSL-fips-2_0-stable) behavior.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/11195)
providers/implementations/rands/drbg.c
test/drbgtest.c