Calculation of the checksum parameter "sig"