Checksum, two hex digits, the least significant byte of ones' complement of the sum of the values represented by the two hex digit pairs for the byte count, address and data fields.
Programs that create HEX records typically use line termination characters that conform to the conventions of their operating systems.