fix endian issue while processing each 512 bit block