]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: inside-secure - Change swab to swab32
authorPeter Harliman Liem <pliem@maxlinear.com>
Tue, 6 Sep 2022 02:51:28 +0000 (10:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Oct 2022 07:58:05 +0000 (09:58 +0200)
commit5b48d7f97a57802dbad2bf46bd08d0db336ff41d
tree1c444a695095315ebb472e6f44dc89026f2a8c63
parent8900bf5bb269a45115897119bdfef59bc2707378
crypto: inside-secure - Change swab to swab32

[ Upstream commit 664593407e936b6438fbfaaf98876910fd31cf9a ]

The use of swab() is causing failures in 64-bit arch, as it
translates to __swab64() instead of the intended __swab32().
It eventually causes wrong results in xcbcmac & cmac algo.

Fixes: 78cf1c8bfcb8 ("crypto: inside-secure - Move ipad/opad into safexcel_context")
Signed-off-by: Peter Harliman Liem <pliem@maxlinear.com>
Acked-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/inside-secure/safexcel_hash.c