Commit 2cd12110 authored by Herbert Xu's avatar Herbert Xu Committed by Greg Kroah-Hartman
Browse files

libcrc32c: keep intermediate crc state in cpu order



It's upstream changeset ef19454b.

[LIB] crc32c: Keep intermediate crc state in cpu order

crypto/crc32.c:chksum_final() is computing the digest as
*(__le32 *)out = ~cpu_to_le32(mctx->crc);
so the low-level crc32c_le routines should just keep
the crc in cpu order, otherwise it is getting swabbed
one too many times on big-endian machines.

Signed-off-by: default avatarBenny Halevy <bhalevy@fs1.bhalevy.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0dace238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment