Dear,
I want to using CSEC_DRV_GenerateMACAddrMode calculate CMAC for DFLASH data, but the return value is STATUS_ERROR. The code is CSEC_DRV_GenerateMACAddrMode(CSEC_KEY1, (const uint8_t *)0x10000000, 0x30d80, flash_ext_cmac_cal);
but I using the same KEY to calclate the PFLASH data is OK, the function can return STATUS_SUCCESS.
How to using the CSEC calculate CMAC for DFLASH data?
Solved! Go to Solution.
Hi,
CSEC_DRV_GenerateMACAddrMode uses command CMD_GENERATE_MAC (pointer method) where the reference manual says:
So, it cannot be used for DFlash. The only option is to use CSEC_DRV_GenerateMAC which uses normal CMD_GENERATE_MAC command.
Regards,
Lukas
Hi,
CSEC_DRV_GenerateMACAddrMode uses command CMD_GENERATE_MAC (pointer method) where the reference manual says:
So, it cannot be used for DFlash. The only option is to use CSEC_DRV_GenerateMAC which uses normal CMD_GENERATE_MAC command.
Regards,
Lukas