Hi,
yes, you should get the same result.
Regards,
Lukas
Hello Lukas,
The following 2 picture is for the copy method and pointer method:
(1) Copy method:
(2) Pointer method
I found the MAC generation is different. Can you help check the reson? Is it becasue little endian or big endian?
Thank you!
Best Regards,
Wang Lijun
Hi Wang,
there's only one corner case when CSEC_DRV_GenerateMAC doesn't work as expected - when the size is a multiple of 256KB. This limitation will be published in next errata release.
But if you use size different from n*256KB, it works as expected.
CSEC_DRV_GenerateMACAddrMode does not have this limitation.
I tested it in the past and I got the same results when calling:
error_code = CSEC_DRV_GenerateMACAddrMode(CSEC_RAM_KEY, 0x50000, size, cmacAddrMode);
error_code = CSEC_DRV_GenerateMAC(CSEC_RAM_KEY, 0x50000, size, cmac, 1000);
Regards,
Lukas