Hello Mbed forum,
I’m working on an embedded application, for a MPC5567 target, that shall verify a signature generated on an Intel x64 PC. Part of the verification process is to hash a large constant buffer, with SHA256.
In order to test my application, I’m generating the SHA256 hash (on the same constant buffer) on both the MPC5567 and the development PC. And I get different hashes.
The hash generated on PC is correct: I got the exact same results from online SHA256 generators and from a homemade python application using pica/Cryptography, and a homemade C application that uses MBEDTLS. So it seems that the hash generated on the MPC5567 is incorrect.
I’m suspecting an endianness issue: the MPC5567 is ‘big endian’ and the PC is ‘little endian’.
Has anyone came accross such issue where the same hash generation yields different results on different platforms?
Thanks for your help.