From b8a398d37d0c7dbc8068b0759f1fb3f9daa11a63 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Wed, 30 Jan 2019 12:54:34 +0100 Subject: bitsliced TEA from archived http://plaintext.crypto.lo.gy/article/378/untwisted-bit-sliced-tea-time --- test/monniaux/bitsliced-tea/bstea_wordsize.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/monniaux/bitsliced-tea/bstea_wordsize.h (limited to 'test/monniaux/bitsliced-tea/bstea_wordsize.h') diff --git a/test/monniaux/bitsliced-tea/bstea_wordsize.h b/test/monniaux/bitsliced-tea/bstea_wordsize.h new file mode 100644 index 00000000..5381e17c --- /dev/null +++ b/test/monniaux/bitsliced-tea/bstea_wordsize.h @@ -0,0 +1,16 @@ +#ifndef __BSTEA_WORDSIZE_H +#define __BSTEA_WORDSIZE_H + +/* Determine the wordsize from the preprocessor defines. */ + +#if defined __x86_64__ || defined __amd64__ || defined __x86_64 || \ + defined __amd64 || defined _M_X64 || defined __ia64__ || \ + defined __ia64__ || defined __IA64__ || defined __ia64 || \ + defined _M_IA64 +# define __BSTEA_WORDSIZE 64 +#else +# define __BSTEA_WORDSIZE 32 +#endif + + +#endif /* __BSTEA_WORDSIZE_H */ -- cgit