Closed CSBVision closed 2 years ago
The DLL is no longer an approved module. The project is deprecated, and it will be removed soon. You should not be using the DLL project.
If you need a DLL, then write a wrapper DLL.
Also see https://www.cryptopp.com/wiki/FIPS_DLL and https://www.cryptopp.com/wiki/Wrapper_DLL .
Hi all,
We are using a CryptoPP 64-bit Dll version 8.7.0 built with VS 2022.
The dll works fine in debug and release build as long as no debugger is attached. But with an debugger attached, during the
DoDllPowerUpSelfTest()
infipstest.cpp
the functionbool IntegrityCheckModule(const char *moduleFilename, const byte *expectedModuleMac, SecByteBlock *pActualMac, unsigned long *pMacFileLocation)
fails and as a result the exceptionCryptographic algorithms are disabled after a power-up self test failed.
is thrown when using a cryptographic function.We guess that something similar to the lines 406 - 416 might solve the problem:
We circumvented the problem by changing the return value as follows without really solving the problem.
We would appreciate if the problem could be solved. At least, if there is no better solution than our hack.
There is a wiki page with information on filing useful bug reports. If you have some time please visit http://www.cryptopp.com/wiki/Bug_Report on the wiki. The executive summary is: