Move the rand_nonce_lock code into drbg_lib.c
authorMatt Caswell <matt@openssl.org>
Fri, 24 May 2019 15:36:44 +0000 (16:36 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 7 Jun 2019 11:04:42 +0000 (12:04 +0100)
commita2f27fd750b9ae62a571a9212c7154889100bdb0
tree54ffd1a0957459478bd30e2cec5e700b59e9c29b
parent4e297b7441a070f9dd557445665365b4377e9498
Move the rand_nonce_lock code into drbg_lib.c

It was previously rand_lib but it makes more sense in drbg_lib.c since
all the functions that use this lock are only ever called from drbg_lib.c

We add some FIPS_MODE defines in preparation for later moving this code
into the FIPS module.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9039)
crypto/init.c
crypto/rand/drbg_lib.c
crypto/rand/rand_lib.c
include/internal/cryptlib.h