Checksum validation using Damm algorithm