From 0b14a5b7ccd1618fe47d74a51c4873144c57ac83 Mon Sep 17 00:00:00 2001 From: Kurt Roeckx Date: Sun, 27 Aug 2017 17:46:33 +0200 Subject: Don't auto-instantiate a DRBG when trying to use it and it's not The one creating the DRBG should instantiate it, it's there that we know which parameters we should use to instantiate it. This splits the rand init in two parts to avoid a deadlock because when the global drbg is created it wands to call rand_add on the global rand method. Reviewed-by: Rich Salz Reviewed-by: Paul Dale GH: #4268 --- crypto/include/internal/rand_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/include') diff --git a/crypto/include/internal/rand_int.h b/crypto/include/internal/rand_int.h index 90b00946a8..d0999f28ad 100644 --- a/crypto/include/internal/rand_int.h +++ b/crypto/include/internal/rand_int.h @@ -18,4 +18,5 @@ #include void rand_cleanup_int(void); +void rand_cleanup_drbg_int(void); void rand_fork(void); -- cgit v1.2.3