• Jeff Cody's avatar
    qemu: add castagnoli crc32c checksum algorithm · 8e1b02b8
    Jeff Cody authored
    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: default avatarJeff Cody <jcody@redhat.com>
    Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    8e1b02b8
crc32c.c 4.79 KB