Skip to content

Commit

Permalink
BUGFIX: issue ShareKit#320
Browse files Browse the repository at this point in the history
  • Loading branch information
VilemKurz committed May 14, 2012
1 parent 4e72add commit 1ba9ce4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/ShareKit/Core/Helpers/OAuth/Crytpo/sha1.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ A million repetitions of "a"

/* #define LITTLE_ENDIAN * This should be #define'd if true. */
#if __LITTLE_ENDIAN__
#define LITTLE_ENDIAN
#define SHK_LITTLE_ENDIAN
#endif
/* #define SHA1HANDSOFF * Copies data before messing with it. */

Expand All @@ -29,7 +29,7 @@ void SHA1Transform(unsigned long state[5], unsigned char buffer[64]);

/* blk0() and blk() perform the initial expand. */
/* I got the idea of expanding during the round function from SSLeay */
#ifdef LITTLE_ENDIAN
#ifdef SHK_LITTLE_ENDIAN
#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \
|(rol(block->l[i],8)&0x00FF00FF))
#else
Expand Down

0 comments on commit 1ba9ce4

Please sign in to comment.