I am using sha256 to calculate the hash of a file on linux 32 bit systems. The hash value is stored in the file at the time of file creation itself.
Whenever, we need to access the file, we verify the authenticity of the file, for which we recalculate the hash of the file and match it with the stored value.
This works fine on Linux 32 bit system. This was the history bit!
Now the issue is that the sha256 implementation is not working correctly on Linux AMD 64 bit system. The sha256 generates a different hash value for the same file when called twice.
Can anybody suggest what changes need to be made to help it work fine on 64 bit systems.
Kindly note that we are using in house implementation of the sha256. and for security reasons cannot share the sha256 implementation being used