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 11:25:42 +0000 (13:25 +0200)
commit8a4ed09ed816a434c942fc7026651a3b99680612
tree333162a6c184d112c0cd7e811137bc19d5944ced
parentd33935e666043f560abdd040a84f03d6d3868c89
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