42
42
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
44
44
/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */
46
46
#define blk(i) (block[i] = rol(block[i-3] ^ block[i-8] ^ block[i-14] ^ block[i-16], 1))
48
48
#define R0(v,w,x,y,z,i) z += ((w&(x^y))^y) + blk0(i) + 0x5A827999 + rol(v, 5); w = rol(w, 30);