qemu: add castagnoli crc32c checksum algorithm
commit8e1b02b8ef2eefcb2ff3855531d7bc2ea71e1fb4
authorJeff Cody <jcody@redhat.com>
Mon, 29 Apr 2013 18:48:16 +0000 (29 14:48 -0400)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 3 May 2013 08:31:58 +0000 (3 10:31 +0200)
tree7d148ba86aaf7485263483521c7259042346799c
parent8ca27ce2e1150486ea2db4116a03706b28294f16
qemu: add castagnoli crc32c checksum algorithm

This adds the Castagnoli CRC32C algorithm, using the 0x11EDC6F41
polynomial.

This is extracted from the linux kernel cryptographic crc32.c module.

The algorithm is based on:

Castagnoli93: Guy Castagnoli and Stefan Braeuer and Martin Herrman
             "Optimization of Cyclic Redundancy-Check Codes with 24
              and 32 Parity Bits", IEEE Transactions on Communication,
              Volume 41, Number 6, June 1993

Signed-off-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
include/qemu/crc32c.h [new file with mode: 0644]
util/Makefile.objs
util/crc32c.c [new file with mode: 0644]