lib: fix byte order test in libsha1.c