aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/tiger.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-05-24 18:31:33 +0000
committerDavid Shaw <[email protected]>2003-05-24 18:31:33 +0000
commit29e6411a7bc1657fab1a3c2b847051a30e2247ea (patch)
tree62aeaf6d2fb67efd3023169a6d82b085a70c3100 /cipher/tiger.c
parent* mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c, (diff)
downloadgnupg-29e6411a7bc1657fab1a3c2b847051a30e2247ea.tar.gz
gnupg-29e6411a7bc1657fab1a3c2b847051a30e2247ea.zip
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c,
rijndael.c, rndunix.c, sha256.c, cast5.c, idea-stub.c, rmd160.c, rndw32.c, sha512.c, md5.c, rmd160test.c, rsa.c, tiger.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
Diffstat (limited to 'cipher/tiger.c')
-rw-r--r--cipher/tiger.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/cipher/tiger.c b/cipher/tiger.c
index 66cd1049f..2a8a8351f 100644
--- a/cipher/tiger.c
+++ b/cipher/tiger.c
@@ -723,8 +723,8 @@ transform( TIGER_CONTEXT *hd, byte *data )
{
u64 a,b,c,aa,bb,cc;
u64 x[8];
- #ifdef BIG_ENDIAN_HOST
- #define MKWORD(d,n) \
+#ifdef BIG_ENDIAN_HOST
+#define MKWORD(d,n) \
( ((u64)(d)[8*(n)+7]) << 56 | ((u64)(d)[8*(n)+6]) << 48 \
| ((u64)(d)[8*(n)+5]) << 40 | ((u64)(d)[8*(n)+4]) << 32 \
| ((u64)(d)[8*(n)+3]) << 24 | ((u64)(d)[8*(n)+2]) << 16 \
@@ -737,10 +737,10 @@ transform( TIGER_CONTEXT *hd, byte *data )
x[5] = MKWORD(data, 5);
x[6] = MKWORD(data, 6);
x[7] = MKWORD(data, 7);
- #undef MKWORD
- #else
+#undef MKWORD
+#else
memcpy( &x[0], data, 64 );
- #endif
+#endif
/* save */
a = aa = hd->a;
@@ -857,18 +857,18 @@ tiger_final( TIGER_CONTEXT *hd )
burn_stack (21*8+11*sizeof(void*));
p = hd->buf;
- #ifdef BIG_ENDIAN_HOST
- #define X(a) do { *(u64*)p = hd-> a ; p += 8; } while(0)
- #else /* little endian */
- #define X(a) do { *p++ = hd-> a >> 56; *p++ = hd-> a >> 48; \
+#ifdef BIG_ENDIAN_HOST
+#define X(a) do { *(u64*)p = hd-> a ; p += 8; } while(0)
+#else /* little endian */
+#define X(a) do { *p++ = hd-> a >> 56; *p++ = hd-> a >> 48; \
*p++ = hd-> a >> 40; *p++ = hd-> a >> 32; \
*p++ = hd-> a >> 24; *p++ = hd-> a >> 16; \
*p++ = hd-> a >> 8; *p++ = hd-> a; } while(0)
- #endif
+#endif
X(a);
X(b);
X(c);
- #undef X
+#undef X
}
static byte *