Fix AES-CTR_DRBG on 1.1.1.
authorPauli <paul.dale@oracle.com>
Wed, 8 Apr 2020 02:33:47 +0000 (12:33 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 9 Apr 2020 07:16:08 +0000 (17:16 +1000)
The backport of the timing information leak fix uses u32 which is defined
in crypto/modes/modes_local.h in 1.1.1 and include/crypto/modes.h for 3.0.

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11489)

crypto/rand/build.info
crypto/rand/drbg_ctr.c

index df9bac67f04ccba3e181f71c1cd0bc639ff70587..a4e7900bdbffc0ddd8841ec329771dfde28fadac 100644 (file)
@@ -2,3 +2,5 @@ LIBS=../../libcrypto
 SOURCE[../../libcrypto]=\
         randfile.c rand_lib.c rand_err.c rand_egd.c \
         rand_win.c rand_unix.c rand_vms.c drbg_lib.c drbg_ctr.c
+
+INCLUDE[drbg_ctr.o]=../modes
index f41484e9d548bdc551c50393566cd8d6ecf3b78a..af201971dd1b62b50327e8c04158af390425cff4 100644 (file)
 #include <openssl/crypto.h>
 #include <openssl/err.h>
 #include <openssl/rand.h>
-#include "internal/thread_once.h"
+#include "modes_local.h"
 #include "internal/thread_once.h"
 #include "rand_local.h"
+
 /*
  * Implementation of NIST SP 800-90A CTR DRBG.
  */