Differences From Artifact [6a70fca031]:
- File src/OFHashes.m — part of check-in [631895440e] at 2008-10-26 19:35:20 on branch trunk — Add OFSHA1Hash. (user: js, size: 11041) [annotate] [blame] [check-ins using]
To Artifact [ae5d03b1b4]:
- File
src/OFHashes.m
— part of check-in
[9759533b97]
at
2008-10-28 18:19:15
on branch trunk
— Add #undefs in OFHashes.
Just to be sure that we won't get any conflicts when someone addes new
hashes. (user: js, size: 11171) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
251 252 253 254 255 256 257 258 259 260 261 262 263 264 | calculated = YES; return (uint8_t*)buf; } @end /******** * SHA1 * ********/ /* blk0() and blk() perform the initial expand. */ #ifndef OF_BIG_ENDIAN #define blk0(i) \ | > > > > > > | 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 | calculated = YES; return (uint8_t*)buf; } @end #undef F1 #undef F2 #undef F3 #undef F4 #undef MD5STEP /******** * SHA1 * ********/ /* blk0() and blk() perform the initial expand. */ #ifndef OF_BIG_ENDIAN #define blk0(i) \ |
︙ | ︙ | |||
410 411 412 413 414 415 416 | for (i = 0; i < SHA1_DIGEST_SIZE; i++) digest[i] = (uint8_t)((state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255); return digest; } @end | > > > > > > > > | 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 | for (i = 0; i < SHA1_DIGEST_SIZE; i++) digest[i] = (uint8_t)((state[i >> 2] >> ((3 - (i & 3)) * 8)) & 255); return digest; } @end #undef blk0 #undef blk #undef R0 #undef R1 #undef R2 #undef R3 #undef R4 |