Re: Better verification: checksum vs. xor

On 24 Dec, 09:56, p...@xxxxxxxxxxxxxxxxx (Pascal J. Bourguignon)
There is no transmission. This will be a block of data in memory. At
the beginning of the block will be an unknown number of garbage bytes
which need to be skipped.

All values should be 8-bit only.

Do you realize that this is an entirely different problem?

Really? In what respect?

Do you know at least the length of the block to be recognized?

The block to be recognised will be about 8 bytes long.....

Are your garbage bytes random?  

They could contain anything.

Are the patterns to be recognized random too?

The data to be recognised will be, er, data. It will vary. Hence the
need for a check value.