diff options
author | Werner Koch <wk@gnupg.org> | 2008-12-10 14:50:57 +0000 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2008-12-10 14:50:57 +0000 |
commit | ca980547b59be5b31650a045b418aaa61252586c (patch) | |
tree | 6dca388e3baafbd3f2d54eca4f04a292ce2a6f74 /src/hmac256.c | |
parent | 740a1fb6a1c7aeaf0968514f6c22879d14dc2c86 (diff) | |
download | libgcrypt-ca980547b59be5b31650a045b418aaa61252586c.tar.gz |
Fix for big endian hosts.
Diffstat (limited to 'src/hmac256.c')
-rw-r--r-- | src/hmac256.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/hmac256.c b/src/hmac256.c index c802a78a..daa9cbed 100644 --- a/src/hmac256.c +++ b/src/hmac256.c @@ -270,14 +270,8 @@ finalize (hmac256_context_t hd) /* Store the digest into hd->buf. */ p = hd->buf; -#ifdef WORDS_BIGENDIAN -#define X(a) do { *p++ = hd->h##a; *p++ = hd->h##a >> 8; \ - *p++ = hd->h##a >> 16; *p++ = hd->h##a >> 24; } 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 X(0); X(1); X(2); |