EVP & PROV: Fix all platform inclusions
authorRichard Levitte <levitte@openssl.org>
Thu, 19 Dec 2019 12:33:35 +0000 (13:33 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 19 Dec 2019 12:33:35 +0000 (13:33 +0100)
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10662)

13 files changed:
crypto/evp/e_aes.c
crypto/evp/e_camellia.c
providers/build.info
providers/implementations/ciphers/cipher_aes.h
providers/implementations/ciphers/cipher_aes_ccm.h
providers/implementations/ciphers/cipher_aes_gcm.h
providers/implementations/ciphers/cipher_aes_ocb.h
providers/implementations/ciphers/cipher_aes_siv.h
providers/implementations/ciphers/cipher_aes_xts.h
providers/implementations/ciphers/cipher_camellia.h
providers/implementations/ciphers/cipher_des.h
providers/implementations/ciphers/cipher_tdes.h
providers/implementations/include/prov/ciphercommon.h

index b95adf0bbf2bb962b5867aabe6221ce505bb0cad..29836844d4dd50e1d7d1705ecb7c7d23fad01746 100644 (file)
@@ -20,7 +20,7 @@
 #include "internal/cryptlib.h"
 #include "crypto/modes.h"
 #include "crypto/siv.h"
-#include "crypto/ciphermode_platform.h"
+#include "crypto/aes_platform.h"
 #include "evp_local.h"
 
 typedef struct {
index 50febca9bcf61b447a47888a22a66e107c133173..1c75c3a4c0dedf223efa6a7f1fa72b1eebdb76fa 100644 (file)
@@ -19,7 +19,7 @@ NON_EMPTY_TRANSLATION_UNIT
 # include <openssl/camellia.h>
 # include "crypto/evp.h"
 # include "crypto/modes.h"
-# include "crypto/ciphermode_platform.h"
+# include "crypto/cmll_platform.h"
 
 static int camellia_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
                              const unsigned char *iv, int enc);
index 2121a72cb2bd20f42d05d8e4860930de90a3c31d..6d4f6ae82c717ebb6c140215d2260bb5e1f1a7d7 100644 (file)
@@ -40,7 +40,7 @@ $LIBNONFIPS=libnonfips.a
 $LIBFIPS=libfips.a
 
 # Enough of our implementations include prov/ciphercommon.h (present in
-# providers/implementations/include), which includes crypto/ciphermode_platform.h
+# providers/implementations/include), which includes crypto/*_platform.h
 # (present in include), which in turn may include very internal header
 # files in crypto/, so let's have a common include list for them all.
 $COMMON_INCLUDES=../crypto ../include implementations/include common/include
index f05ff1b7d5cb23e8e7cae6ea2d459e540ebe9553..f2ee746295a2e5370a8d10b785dd3229081f5edf 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <openssl/aes.h>
 #include "prov/ciphercommon.h"
+#include "crypto/aes_platform.h"
 
 typedef struct prov_aes_ctx_st {
     PROV_CIPHER_CTX base;      /* Must be first */
index a0dc4b6f25b52f316b93423edf76aca6cd34a97e..ee0257c5f68719cb21229ae5b0736bc576232ec8 100644 (file)
@@ -10,6 +10,7 @@
 #include <openssl/aes.h>
 #include "prov/ciphercommon.h"
 #include "prov/ciphercommon_ccm.h"
+#include "crypto/aes_platform.h"
 
 typedef struct prov_aes_ccm_ctx_st {
     PROV_CCM_CTX base;         /* Must be first */
index 6c81790640e83025eda9c18728dbfd3bd33c9341..d7006408de00b497e0df182f5034f2e73a97c50e 100644 (file)
@@ -10,6 +10,7 @@
 #include <openssl/aes.h>
 #include "prov/ciphercommon.h"
 #include "prov/ciphercommon_gcm.h"
+#include "crypto/aes_platform.h"
 
 typedef struct prov_aes_gcm_ctx_st {
     PROV_GCM_CTX base;          /* must be first entry in struct */
index ba515241e222adc8f46131b65cb456f2498b7660..94d8183167c2577ddac0a2f1beebd9caac922b78 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <openssl/aes.h>
 #include "prov/ciphercommon.h"
+#include "crypto/aes_platform.h"
 
 #define OCB_MAX_TAG_LEN     AES_BLOCK_SIZE
 #define OCB_MAX_DATA_LEN    AES_BLOCK_SIZE
index 8f35d757dcba0e4e4f166ac1e1947607da2b236b..05411d7012155af8fa2fa992a756a2c6b4087f6f 100644 (file)
@@ -8,7 +8,8 @@
  */
 
 #include "prov/ciphercommon.h"
-#include "include/crypto/siv.h"
+#include "crypto/aes_platform.h"
+#include "crypto/siv.h"
 
 typedef struct prov_cipher_hw_aes_siv_st {
     int (*initkey)(void *ctx, const uint8_t *key, size_t keylen);
index 615ee6190592ef4b8623785dc2e7c2df0f6135a7..23ae69619765a5940bded47a59ab248bb995da76 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <openssl/aes.h>
 #include "prov/ciphercommon.h"
+#include "crypto/aes_platform.h"
 
 /*
  * Available in cipher_fips.c, and compiled with different values depending
index 58636f1d3239a4af6c66f1cbfb75e2957548388c..07f67dbad866d76a5161bed7ac4e51459cdf0ebb 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "openssl/camellia.h"
 #include "prov/ciphercommon.h"
+#include "crypto/cmll_platform.h"
 
 typedef struct prov_camellia_ctx_st {
     PROV_CIPHER_CTX base;      /* Must be first */
index 92dcfa11e9b7edfcb350e814cf99a226daa032d1..aedb38177e4d9da974eb1bce10ac62b393dc224b 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <openssl/des.h>
+#include "crypto/des_platform.h"
 
 /* TODO(3.0) Figure out what flags need to be here */
 #define TDES_FLAGS (EVP_CIPH_RAND_KEY)
index 7bb879fb4f2c33faf348d49e14ae30b038f8e5ec..e1fb760e23f0a28e701bdcea9f6a63f016543a9d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <openssl/des.h>
 #include <openssl/core_numbers.h>
+#include "crypto/des_platform.h"
 
 #define DES_BLOCK_SIZE 8
 #define TDES_IVLEN 8
index bf77a4021e85f29276fb2bc7afe654c72b2e8c3a..d4dc5ed1db02847f6d622d7b7e791cf223fac471 100644 (file)
@@ -13,7 +13,6 @@
 #include <openssl/evp.h>
 #include "internal/cryptlib.h"
 #include "crypto/modes.h"
-#include "crypto/ciphermode_platform.h"
 
 #define MAXCHUNK    ((size_t)1 << (sizeof(long) * 8 - 2))
 #define MAXBITCHUNK ((size_t)1 << (sizeof(size_t) * 8 - 4))