MD5 code uses little endian so remove arbitrary SWAP macro and explicitly use htole32.