Fix integer overflow in unpack_sha1_rest()