Skip to main content

Module checksum

Module checksum 

Source
Expand description

FIX checksum calculation.

The FIX checksum is the sum of all bytes in the message (excluding the checksum field itself) modulo 256, formatted as a 3-digit zero-padded string.

Functionsยง

calculate_checksum
Calculates the FIX checksum for the given data.
format_checksum
Formats a checksum value as a 3-digit zero-padded string.
parse_checksum
Parses a 3-digit checksum string to a u8 value.