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>
Wed, 26 Oct 2022 10:35:26 +0000 (12:35 +0200)
commit393307b99aac573bffc623311e7fbfe78d4ccc24
tree01efe49edeb4f76982b5b02224c8332d6558b43f
parent93538944ab0b5860c86c9d1601d3954f82ab8ca5
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