sha1_file: use the correct type (ssize_t, not size_t) for read-style function