Thank you Jeff for reply. I was not able to get managed VC++ working, but I was able to get unmanaged C++ working and write extern "C" wrapper.
This is working fine for 32-bit "cryptopp.dll", but when I try to run 64-bit version I get exception showing: Exception thrown at 0x0000000000000000 in CryptoppCPP.exe: 0xC0000005: Access violation executing location 0x0000000000000000. If there is a handler for this exception, the program may be safely continued. Would you be able to give me some insight what could be the issue? I uploaded sample code here: https://1drv.ms/u/s!Aj3FJgprcdyr_G9gUZdYXr35MOtu Thank you very much for your support. _Farukh Sharipov On Friday, April 28, 2017 at 3:29:51 PM UTC-7, Jeffrey Walton wrote: > > > > On Friday, April 28, 2017 at 6:13:16 PM UTC-4, Farukh Sharipov wrote: >> >> Thank you Jeffry for reply. >> >> I am trying to write managed VC++ wrapper for FIPS DLL but getting >> following error: >> >> >> Severity Code Description Project File Line Suppression State >> Error LNK2001 unresolved external symbol "public: virtual void >> __thiscall CryptoPP::DES::Base::ProcessAndXorBlock(unsigned char const >> *,unsigned char const *,unsigned char *)const " (? >> ProcessAndXorBlock@Base@DES@CryptoPP@@UBEXPBE0PAE@Z) cryptoppwrapper C:\ >> Users\821973\documents\visual studio 2015\Projects\cryptoppwrapper\ >> cryptoppwrapper\TDES.obj 1 >> >> >> >> >> From browsing discussions here, I found that this is because FIPS DLL >> doesn't export DES modules which are not supported by FIPS. >> >> But I don't know how to resolve this, would you be able to help me with >> that? I uploaded my sample project to assist with troubleshooting if >> possible. You can get it from here: >> https://1drv.ms/u/s!Aj3FJgprcdyr_GxmEk8JddUujIDd >> > > Right. Your wrapper DLL links against the non-FIPS version of the library > to get the missing symbols. > > Also see: > > * https://www.cryptopp.com/wiki/FIPS_DLL > * https://www.cryptopp.com/wiki/Visual_Studio > > Jeff > > -- -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to cryptopp-users-unsubscr...@googlegroups.com. More information about Crypto++ and this group is available at http://www.cryptopp.com. --- You received this message because you are subscribed to the Google Groups "Crypto++ Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.