update sha1 for big endian