Go to file
Patrick Pelletier 382c9d4d85 Some fixes necessary to support the Clang compiler
First of all, it had a failure in SEED:

LTC_KSEED failed for x=0, I got:
expected    actual   (ciphertext)
     5e  ==  5e
     ba  ==  ba
     c6  ==  c6
     e0  ==  e0
     05  !=  00
     4e  !=  00
     16  !=  00
     68  !=  00
     19  ==  19
     af  ==  af
     f1  ==  f1
     cc  ==  cc
     6d  !=  00
     34  !=  00
     6c  !=  00
     db  !=  00

Since SEED uses the 32H macros, this is really analogous to the
problem I saw with the 64H macros in Camellia with gcc.  Not sure why
gcc only had a problem with 64H and not 32H, but since this is an
interaction with the optimizer, it's not going to happen every time
the macro is used (hence why the store tests pass; only when you get
into the complexity of a real cipher do you start having problems) and
it makes sense it will vary from compiler to compiler.

Anyway, I went ahead and added the ability to use __builtin_bswap32,
in addition to __builtin_bswap64, which I already did in a previous
commit.  This solves the problem for clang, although I had to add new
logic to detect the bswap builtins in clang, since it has a different
way to detect them than gcc (see the comments in the code).  The
detection logic was complicated enough, and applied to both the 32H
and 64H macros, so I factored out the detection logic into
tomcrypt_cfg.h.
2012-11-18 15:20:12 +01:00
demos rejoined diffie hellman code from ltc 1.05, thanks to Alexander Kurpiers 2011-01-18 20:06:03 +01:00
doc added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
notes fixed tests and testvectors 2011-01-18 19:42:38 +01:00
src Some fixes necessary to support the Clang compiler 2012-11-18 15:20:12 +01:00
testprof When a test fails, print the algorithm that it failed on. 2012-11-18 15:20:10 +01:00
.gitignore updated gitignore 2011-03-21 22:59:59 +01:00
build.sh make build.sh less verbose when test fails 2011-03-21 21:10:23 +01:00
changes added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
crypt.lof added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
crypt.tex rejoined diffie hellman code from ltc 1.05, thanks to Alexander Kurpiers 2011-01-18 20:06:03 +01:00
Doxyfile added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
filter.pl added libtomcrypt-1.09 2010-06-16 12:38:49 +02:00
fixupind.pl added libtomcrypt-1.15 2010-06-16 12:39:06 +02:00
genlist.sh added libtomcrypt-1.06 2010-06-16 12:38:41 +02:00
libtomcrypt_VS2005.sln Added project and solution files for Visual Studio 2005 and Visual Studio 2008. 2010-06-16 20:01:47 +02:00
libtomcrypt_VS2005.vcproj Added project and solution files for Visual Studio 2005 and Visual Studio 2008. 2010-06-16 20:01:47 +02:00
libtomcrypt_VS2008.sln Added project and solution files for Visual Studio 2005 and Visual Studio 2008. 2010-06-16 20:01:47 +02:00
libtomcrypt_VS2008.vcproj updated gitignore and VS2008 project file 2011-01-24 10:41:30 +01:00
libtomcrypt.dsp added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
LICENSE after multiple objections of libtom users [1], we decided to change licensing 2011-01-19 10:18:15 +01:00
makefile don't delete doc/crypt.pdf in "make clean" 2012-11-18 15:20:09 +01:00
makefile.icc import of libtomcrypt 2010-06-16 19:58:20 +02:00
makefile.msvc import of libtomcrypt 2010-06-16 19:58:20 +02:00
makefile.shared import of libtomcrypt 2010-06-16 19:58:20 +02:00
makefile.unix import of libtomcrypt 2010-06-16 19:58:20 +02:00
mess.sh added libtomcrypt-1.12 2010-06-16 12:38:57 +02:00
parsenames.pl added libtomcrypt-1.03 2010-06-16 12:38:34 +02:00
README added libtomcrypt-1.16 2010-06-16 12:39:09 +02:00
run.sh added libtomcrypt-1.06 2010-06-16 12:38:41 +02:00
testbuild.sh added libtomcrypt-1.06 2010-06-16 12:38:41 +02:00
testme.sh testme.sh: added parameter checking 2011-05-20 09:41:57 +02:00
TODO added libtomcrypt-1.17 2010-06-16 12:39:13 +02:00
updatemakes.sh added libtomcrypt-1.16 2010-06-16 12:39:09 +02:00

See doc/crypt.pdf