fix compile error on the latest TSIP crypt-only

pull/328/head
Hideki Miyazaki 2023-08-02 17:03:32 +09:00 committed by Daniele Lacamera
parent 2d819dee84
commit 0eab04618f
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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) {