Skip to content
Commit dd41b283 authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu
Browse files

crypto: mips/crc32 - fix the CRC32C implementation



Commit ca459e5f ("crypto: mips/crc32 - Clean up useless assignment
operations") changed crc32c_mips_le_hw() to use the instructions that
use the "regular" CRC32 polynomial instead of the Castagnoli polynomial.
Therefore it can't be computing CRC32C values correctly anymore.

I haven't been successful in running a MIPS kernel in QEMU, but based on
code review this is the fix that is needed.

Fixes: ca459e5f ("crypto: mips/crc32 - Clean up useless assignment operations")
Cc: Guan Wentao <guanwentao@uniontech.com>
Cc: WangYuli <wangyuli@uniontech.com>
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
Acked-by: default avatarWentao Guan <guanwentao@uniontech.com>
Acked-by: default avatarWangYuli <wangyuli@uniontech.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cd843399
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment