Commit c7fe14a9 by Kurt Zeilenga

Have code use <sys/types.h> BYTE_ORDER as before.

parent 23f5d115
 ... @@ -35,12 +35,12 @@ ... @@ -35,12 +35,12 @@ * blk0() and blk() perform the initial expand. * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay * I got the idea of expanding during the round function from SSLeay */ */ #if WORDS_BIGENDIAN #if BYTE_ORDER = LITTLE_ENDIAN # define blk0(i) block->l[i] #else # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) |(rol(block->l[i],8)&0x00FF00FF)) #endif #endif #else # define blk0(i) block->l[i] #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ ^block->l[(i+2)&15]^block->l[i&15],1)) ^block->l[(i+2)&15]^block->l[i&15],1)) ... ...
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!