Changed order of config file checking in include defines

pull/11046/head
Kostiantyn Tkachov 2019-09-02 22:17:25 +03:00
parent 08fd15796a
commit 235949b1f4
14 changed files with 39 additions and 40 deletions

View File

@ -28,10 +28,10 @@
#if !defined(SHA1_ALT_H)
#define SHA1_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -29,10 +29,10 @@
#if !defined(SHA256_ALT_H)
#define SHA256_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -28,10 +28,10 @@
#if !defined(SHA512_ALT_H)
#define SHA512_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -28,10 +28,10 @@
#if !defined(SHA1_ALT_H)
#define SHA1_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -29,10 +29,10 @@
#if !defined(SHA256_ALT_H)
#define SHA256_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -28,10 +28,10 @@
#if !defined(SHA512_ALT_H)
#define SHA512_ALT_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "crypto_common.h"

View File

@ -122,7 +122,6 @@ static int aes_set_keys( mbedtls_aes_context *ctx, const unsigned char *key,
if (CY_CRYPTO_SUCCESS != status)
{
ret = MBEDTLS_ERR_AES_HW_ACCEL_FAILED;
goto exit;
}
exit:

View File

@ -27,10 +27,10 @@
#if !defined(CRYPTO_COMMON_H)
#define CRYPTO_COMMON_H
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#include "mbedtls/ecp.h"

View File

@ -25,10 +25,10 @@
*
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_ECDSA_C)

View File

@ -43,10 +43,10 @@
* <http://eprint.iacr.org/2004/342.pdf>
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_ECP_C)

View File

@ -25,10 +25,10 @@
*
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_ECP_C)

View File

@ -26,10 +26,10 @@
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_SHA1_C)

View File

@ -25,10 +25,10 @@
*
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_SHA256_C)

View File

@ -25,10 +25,10 @@
*
*/
#if !defined(MBEDTLS_CONFIG_FILE)
#include "mbedtls/config.h"
#else
#if defined(MBEDTLS_CONFIG_FILE)
#include MBEDTLS_CONFIG_FILE
#else
#include "config.h"
#endif
#if defined(MBEDTLS_SHA512_C)