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/sha256.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/sha256.c')
-rw-r--r-- | cipher/sha256.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cipher/sha256.c b/cipher/sha256.c index 73f211844..b71025ecb 100644 --- a/cipher/sha256.c +++ b/cipher/sha256.c @@ -256,12 +256,12 @@ sha256_final(SHA256_CONTEXT *hd) burn_stack (328); p = hd->buf; - #ifdef BIG_ENDIAN_HOST - #define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0) - #else /* little endian */ - #define X(a) do { *p++ = hd->h##a >> 24; *p++ = hd->h##a >> 16; \ +#ifdef BIG_ENDIAN_HOST +#define X(a) do { *(u32*)p = hd->h##a ; p += 4; } while(0) +#else /* little endian */ +#define X(a) do { *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); @@ -270,8 +270,7 @@ sha256_final(SHA256_CONTEXT *hd) X(5); X(6); X(7); - #undef X - +#undef X } static byte * |