]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: fix crc64 testmgr digest byte order
authorKeith Busch <kbusch@kernel.org>
Tue, 22 Mar 2022 14:21:07 +0000 (08:21 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Mar 2022 01:44:29 +0000 (19:44 -0600)
commit05981a799ff3c7579717fe8b4e13eca26a67e8ba
treed62da3b6a2b7dd20221bf45ae894ac313b354a0c
parent12c552e325924a585f94a25496d10b84ed6eaf2f
crypto: fix crc64 testmgr digest byte order

The result is set in little endian, so the expected digest needs to
be consistent for big endian machines.

Fixes: 7fa919ccb423 ("crypto: add rocksoft 64b crc guard tag framework")
Reported-by: Vasily Gorbik <gor@linux.ibm.com>
Reported-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20220322142107.4581-1-kbusch@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
crypto/testmgr.h