hello,
When call the API CSEC_DRV_GenerateMAC() and CSEC_DRV_GenerateMACAddrMode() calculates the same mesage, why is the result different? and We try to modify the alignment of the message,as shown in the figure below, looking forward to your reply, thank you.
CSEC_DRV_GenerateMACAddrMode():
CSEC_DRV_GenerateMAC()
Now I know the reason.
Because the ARM core MCU consider a 32-bit number as little-endian.
For example:
0x12345678 is considered as [0x78, 0x56, 0x34, 0x12].
The two API does not consider the number as same persperctive.
So the resulting calcuted results are different, which is strange.
NXP should tell the programmer to consider this subtle things.
Hi,
there are two possible reasons for such behavior:
Make sure that both conditions are met.
Regards,
Lukas