crypto: inside-secure - Change swab to swab32
stable inclusion from stable-v5.10.150 commit 8a4ed09ed816a434c942fc7026651a3b99680612 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8a4ed09ed816a434c942fc7026651a3b99680612 -------------------------------- [ Upstream commit 66459340 ] 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: 78cf1c8b ("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> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com>
Loading
Please sign in to comment