diff options
author | David Shaw <[email protected]> | 2003-05-24 18:31:33 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-05-24 18:31:33 +0000 |
commit | 29e6411a7bc1657fab1a3c2b847051a30e2247ea (patch) | |
tree | 62aeaf6d2fb67efd3023169a6d82b085a70c3100 /cipher/sha512.c | |
parent | * mpicoder.c, mpi-inline.h, mpi-inv.c, mpiutil.c, mpih-div.c, (diff) | |
download | gnupg-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/sha512.c')
-rw-r--r-- | cipher/sha512.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 * |