LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   sha256 not working on Linux 64 bit system (https://www.linuxquestions.org/questions/programming-9/sha256-not-working-on-linux-64-bit-system-645210/)

sjain 05-27-2008 10:46 PM

sha256 not working on Linux 64 bit system
 
Hi All,

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. :confused:

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 :cry:


++thanks,
-Sachin

osor 05-28-2008 03:56 PM

If you can’t post the code, how are we supposed to help?


All times are GMT -5. The time now is 05:37 AM.