About func in md5.c

Zheng Yuan {ZYUAN1} zyuan1 at cig.mot.com
Wed Mar 7 21:39:39 CET 2001


Hi, All

maybe i totally dont figure this right, in the func void
byteReverse(unsigned char *buf, unsigned longs) {
    u32 t;
    do {
	t = (u32) ((unsigned) buf[3] << 8 | buf[2]) << 16 |
	    ((unsigned) buf[1] << 8 | buf[0]);
	*(u32 *) buf = t;
	buf += 4;
    } while (--longs);
}


isnt that buf[3] should shift 24?




More information about the Bird-users mailing list