libtom / libtomcrypt

LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.

Home Page:https://www.libtom.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

building tomcrypt in Visual Studio 2017

mupchurch-verys opened this issue · comments

When I tried to open and build the MS Visual Studio solution (included solution & project), conversion was fine but when I compile it errors out at:

ltm_desc.c(15): fatal error C1083: Cannot open include file: 'tommath.h': No such file or directory

Lo and behold there is no tommath.h file...

The VS Solution has per default libtommath as math library enabled to be able to do public key cryptography (RSA, DSA, ECC).

If you don't need public key (PK) cryptography, but only ciphers, hashes etc. you can remove the "LTM_DESC" define from your solution.

In case you want PK crypto please clone https://github.com/libtom/libtommath on the master branch via git clone https://github.com/libtom/libtommath.git -b master to the same hierarchy where the libtomcrypt folder is located and build that one first. Then you should be able to build libtomcrypt as well and run the tests.

You need to have source codes of both libtomcrypt and libtommath in directories like:

  • c:\devel\libtomcrypt\
  • c:\devel\libtommath\

Than c:\devel\libtomcrypt\libtomcrypt_VS2008.sln will be able to "find" ..\libtommath\tommath.h

I'm closing this as there was no action for too long.
Please re-open if you have further questions/comments.