counterfix sha1.c endianess