Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-27-2008, 11:46 PM   #1
LQ Newbie
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Unhappy 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.

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

Old 05-28-2008, 04:56 PM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Upgrade from 32-bit to 64-bit Fedora Linux without a system reinstall LXer Syndicated Linux News 0 01-11-2008 10:42 PM
64-Bit Linux System New2Linux64 Linux - Hardware 2 01-13-2005 10:32 AM
Use 32 bit and x86_64 Linux on same system? jfried Linux - Newbie 1 11-16-2004 12:05 AM
64-Bit Linux System New2Linux64 Linux - Hardware 4 11-12-2004 08:41 PM
64-Bit Linux System gsibble Linux - Hardware 15 09-09-2004 07:04 PM > Forums > Non-*NIX Forums > Programming

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration