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

Build failure with dietlibc

dfandrich opened this issue · comments

libtomcrypt ver. 1.18.2 fails to compile against dietlibc 0.34 on x86 Linux due to the encrypt() function in src/ciphers/multi2.c Even though it's defined as static and only used locally, the function signature doesn't match the POSIX encrypt() function so the compilation fails. Even if the blame lies at the feet of dietlibc for defining an encrypt() prototype when unistd.h isn't included (and I'm not positive it does) it's confusing at best that this standard function (with such an unfortunately generic name) is redefined another way within libtomcrypt. I suggest renaming it, both for clarity and to avoid such compile problems.