Fix bug with unsigned values appearing as negative signed values

re: comment on previous pull request about signedness problems with some existing firmware signatures