OSDN Git Service

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)
commit1e21270685ae4c14361dd501da62cdc4be867d4e
treed62da3b6a2b7dd20221bf45ae894ac313b354a0c
parent4020aad85c6785ddac8d51f345ff9e3328ce773a
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: f3813f4b287e ("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