Hello,
Currently I use the following setting
and have eneabled and configured the Crypto_43_CSEC driver inside the ConfigTool menu.
When I build the application an error is thrown in the generated folder inside the project
if( (CRYPTO_43_CSEC_MAX_MAC_VERIFY_LEN_U32 < u16MacBitLen) || (CRYPTO_43_CSEC_MIN_MAC_VERIFY_LEN_U32 > u16MacBitLen) )
claiming undefined C macros (CRYPTO_43_CSEC_MAX_MAC_VERIFY_LEN_U32 , CRYPTO_43_CSEC_MIN_MAC_VERIFY_LEN_U32).
When I checked the generated header file inside the project folder
/* Minimum length of CMAC Verification */
#define CRYPTO_MIN_MAC_VERIFY_LEN_U32 ((uint32)1)
/* Maximum length of CMAC Verification */
#define CRYPTO_MAX_MAC_VERIFY_LEN_U32 (uint32)(128U)
I found the macros but the naming convention is not applied here (should start with CRYPTO_43_CSEC_ instead of CRYPTO_ ).
When I checked the original header file inside the installed RTD folder at
I found at line 124 and 127 the macros with the correct naming convention applied.
/* Minimum length of CMAC Verification */
#define CRYPTO_43_CSEC_MIN_MAC_VERIFY_LEN_U32 ((uint32)[!"node:value(CryptoGeneral/MinimumMacVerificationLength)"!]U)
/* Maximum length of CMAC Verification */
#define CRYPTO_43_CSEC_MAX_MAC_VERIFY_LEN_U32 (128U)
I have attached the files so you can check. If you need additional information let me know.
I have tried that with a second application where I added the respective driver but ended up with the same error.
Best regards,
M_SCH
Hi @M_SCH
thanks for bringing this into our attention, I'm going to report this issue to SW team.
Regards,
Lukas