2.2.4.1.3.1.3 Checksum

The checksum field in the Polling-Virtual-Connection-Message provides the receiving device with a way to validate the consistency of the received data. The checksum is computed strictly using the Application-Data. Any Polling-Virtual-Connection-Message or any of the other HTTP request/response headers MUST NOT be included when computing the checksum.

Checksum = 1*DIGIT

The following pseudo-code specifies the checksum generation:

On First SignedByte of Application-Data initialize value of CheckSum:

CheckSum = 0

For each subsequent SignedByte in Application Data:

Checksum = Checksum + ((SignedByte + 1) * (index of SignedByte + 1))