@@ -161,12 +161,20 @@ extern "C" {
161161
162162#if defined(__WOLFBOOT ) || defined(UNIT_TEST_AUTH )
163163
164+ #include "wolfssl/wolfcrypt/settings.h"
165+ #include "wolfssl/wolfcrypt/visibility.h"
166+ #include "wolfssl/wolfcrypt/wc_port.h"
167+ #include "wolfssl/wolfcrypt/types.h"
168+ #ifdef WOLFBOOT_RENESAS_TSIP
169+ #include "r_bsp_common.h"
170+ #include "r_bsp_config.h"
171+ #include "r_tsip_rx_if.h"
172+ #include "wolfssl/wolfcrypt/port/Renesas/renesas_tsip_types.h"
173+ #endif
174+
175+
164176/* Hashing configuration */
165177#if defined(WOLFBOOT_HASH_SHA256 )
166- #include "wolfssl/wolfcrypt/settings.h"
167- #include "wolfssl/wolfcrypt/visibility.h"
168- #include "wolfssl/wolfcrypt/wc_port.h"
169- #include "wolfssl/wolfcrypt/types.h"
170178 #include "wolfssl/wolfcrypt/sha256.h"
171179# ifndef WOLFBOOT_SHA_BLOCK_SIZE
172180# define WOLFBOOT_SHA_BLOCK_SIZE (256)
@@ -182,10 +190,6 @@ extern "C" {
182190 typedef wc_Sha256 wolfBoot_hash_t ;
183191# define HDR_HASH HDR_SHA256
184192#elif defined(WOLFBOOT_HASH_SHA384 )
185- #include "wolfssl/wolfcrypt/settings.h"
186- #include "wolfssl/wolfcrypt/visibility.h"
187- #include "wolfssl/wolfcrypt/wc_port.h"
188- #include "wolfssl/wolfcrypt/types.h"
189193 #include "wolfssl/wolfcrypt/sha512.h"
190194# ifndef WOLFBOOT_SHA_BLOCK_SIZE
191195# define WOLFBOOT_SHA_BLOCK_SIZE (256)
@@ -201,10 +205,6 @@ extern "C" {
201205 typedef wc_Sha384 wolfBoot_hash_t ;
202206# define HDR_HASH HDR_SHA384
203207#elif defined(WOLFBOOT_HASH_SHA3_384 )
204- #include "wolfssl/wolfcrypt/settings.h"
205- #include "wolfssl/wolfcrypt/visibility.h"
206- #include "wolfssl/wolfcrypt/wc_port.h"
207- #include "wolfssl/wolfcrypt/types.h"
208208 #include "wolfssl/wolfcrypt/sha3.h"
209209# ifndef WOLFBOOT_SHA_BLOCK_SIZE
210210# define WOLFBOOT_SHA_BLOCK_SIZE (256)
@@ -234,7 +234,8 @@ extern "C" {
234234
235235#endif
236236
237- #if defined(__WOLFBOOT ) || defined (__FLASH_OTP_PRIMER ) || defined (UNIT_TEST_AUTH ) || defined(WOLFBOOT_TPM )
237+ #if defined(__WOLFBOOT ) || defined (__FLASH_OTP_PRIMER ) || \
238+ defined (UNIT_TEST_AUTH ) || defined(WOLFBOOT_TPM )
238239
239240 /* Authentication configuration */
240241 #if defined(WOLFBOOT_NO_SIGN )
0 commit comments