Hi I am just trying to do some basic SHA1 hashing (with more advanced stuff
later), but I cannot seem to get things to function properly.

I'm using Visual Studio 2005 and have created a basic Windows console
application.  I've put all the .h files from the FIPS precompiled DLL
(version 5.2.3) into the include directory, as well as the lib and dll files
from the debug folder in the archive.  I added the include folder to the c++
options list of folders to include, and added the lib file to the linker
options under Additional Dependencies.  Everything compiles and links
properly.  The only modifications I have done besides those options to my
test app are to #include "sha.h" in the Test.cpp, and inside Main I create
an instance of the SHA1 class:

CryptoPP::SHA1 has;

When I run the executable it fails immediately with the error:

Unhandled exception at 0x7c81eb33 in Test.exe: Microsoft C++ exception:
CryptoPP::SelfTestFailure at memory location 0x0012f784..

It then refers me to link 26 of iterhash.h:
IteratedHashBase() : m_countHi(0), m_countLo(0) {}

Does anyone have any ideas as to what I can do?  I'm in a bit of a rush and
need this operational.  I tried to connect to CVS and pull down the latest
code to compile it in Visual Studio 2005 but SF's CVS server is down.  If
anyone happens to have an archive of the latest code that would be much
appreciated, as would some help with this problem.

Thanks!
David

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.4.2/314 - Release Date: 4/16/2006
 

Reply via email to