btrfs-progs: image: add a function to calculate CRC32C collisions
authorPiotr Pawlow <pp@siedziba.pl>
Fri, 11 Aug 2017 13:06:17 +0000 (15:06 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Sep 2017 13:16:59 +0000 (15:16 +0200)
commitc859336f470d1fadb46134b30d966b3588f1d44e
tree3c172836d5942ed9f6b413bc638d7408f181aa26
parenta17224416325a5218b46ace4bed3fe98d3468ef6
btrfs-progs: image: add a function to calculate CRC32C collisions

The function uses the reverse CRC32C table to quickly calculate a
4-byte suffix, that when added to the original data will make it
match desired checksum.

Author: Piotr Pawlow <pp@siedziba.pl>
[ minor adjustments ]
Signed-off-by: David Sterba <dsterba@suse.com>
image/main.c