diff --git a/IDE/Renesas/e2studio/RX72N/include/user_settings.h b/IDE/Renesas/e2studio/RX72N/include/user_settings.h index 3dece404..658b389b 100644 --- a/IDE/Renesas/e2studio/RX72N/include/user_settings.h +++ b/IDE/Renesas/e2studio/RX72N/include/user_settings.h @@ -27,7 +27,7 @@ #define H_USER_SETTINGS_ /* For TSIP use, please enable the following line. */ -#define WOLFBOOT_RENESAS_TSIP +/* #define WOLFBOOT_RENESAS_TSIP */ /* For TSIP SRC version use, please enable the following line */ /* #define WOLFBOOT_RENESAS_TSIP_SRCVERSION */ @@ -183,6 +183,9 @@ # define WOLFSSL_SP_NO_4096 # endif # define WC_ASN_HASH_SHA256 +# if defined(WOLFBOOT_RENESAS_TSIP) +# define ENCRYPTED_KEY_BYTE_SIZE RSA2048_PUB_SIZE +# endif #endif #ifdef WOLFBOOT_SIGN_RSA3072 diff --git a/hal/renesas-rx.c b/hal/renesas-rx.c index 5285ed90..5fb16fb6 100644 --- a/hal/renesas-rx.c +++ b/hal/renesas-rx.c @@ -99,7 +99,7 @@ void hal_init(void) (byte*)&encrypted_user_key_data->encrypted_user_key, 0/* dummy */); /* TSIP specific RSA public key */ - if (tsip_use_PublicKey_buffer(&pkInfo, + if (tsip_use_PublicKey_buffer_crypt(&pkInfo, (const char*)&encrypted_user_key_data->encrypted_user_key, RSA2048_PUB_SIZE, tsip_key_type) != 0) {