More checksum options

Wishlists for new functionality and features.
Post Reply
bupbupbup
Posts: 1
Joined: 08 Oct 2014 20:23

More checksum options

Post by bupbupbup »

The option to keep a running 8/16/32-bit total is already there, but those options still operate on individual bytes. e.g: 86 FE B7 21 52 BD 4F 58 is always calculated by adding up the individual bytes ( 86+FE+B7+21+52+BD+4F+58) regardless of whether the final checksum is 8, 16, or 32 bits.

Being able to calculate checksums by word (or dword) would be nice. i.e: 86 FE B7 21 52 BD 4F 58 = 86FE+B721+52BD+4F58
Maël
Site Admin
Posts: 1454
Joined: 12 Mar 2005 14:15

Re: More checksum options

Post by Maël »

Add Xor-8 as described in "CheckSum8 Xor" on https://www.scadacore.com/tools/program ... alculator/

Add similar Xor-16 and Xor-32, once the exact algorithm is clear, and there is a reference implementation/algorithm.
fzabkar
Posts: 7
Joined: 18 Dec 2021 01:00

Re: More checksum options

Post by fzabkar »

I often need to compute XOR-8 and XOR-16 checksums over an entire file. The algorithms are as follows:

XOR-8 = byte1 xor byte2 xor byte3 xor ... byteN.

XOR-16 = word1 xor word2 xor word3 xor ... wordN

Would it be possible to add this feature?
Post Reply