From 29e6411a7bc1657fab1a3c2b847051a30e2247ea Mon Sep 17 00:00:00 2001 From: David Shaw Date: Sat, 24 May 2003 18:31:33 +0000 Subject: * 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. --- cipher/sha512.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cipher/sha512.c') diff --git a/cipher/sha512.c b/cipher/sha512.c index 7249e922a..ed67fe45a 100644 --- a/cipher/sha512.c +++ b/cipher/sha512.c @@ -331,14 +331,14 @@ sha512_final(SHA512_CONTEXT *hd) burn_stack (768); p = hd->buf; - #ifdef BIG_ENDIAN_HOST - #define X(a) do { *(u64*)p = hd->h##a ; p += 8; } while(0) - #else /* little endian */ - #define X(a) do { *p++ = hd->h##a >> 56; *p++ = hd->h##a >> 48; \ +#ifdef BIG_ENDIAN_HOST +#define X(a) do { *(u64*)p = hd->h##a ; p += 8; } while(0) +#else /* little endian */ +#define X(a) do { *p++ = hd->h##a >> 56; *p++ = hd->h##a >> 48; \ *p++ = hd->h##a >> 40; *p++ = hd->h##a >> 32; \ *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \ *p++ = hd->h##a >> 8; *p++ = hd->h##a; } while(0) - #endif +#endif X(0); X(1); X(2); @@ -349,7 +349,7 @@ sha512_final(SHA512_CONTEXT *hd) We just ignore them. */ X(6); X(7); - #undef X +#undef X } static byte * -- cgit